Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Downloads
Platforms
OutSystems.com
My Platform
Community
Resources
Support
Search in OutSystems
Log in
Sign Up
Community
›
Forge
›
Assets list
›
HTTP Request Context Items
HTTP Request Context Items
Stable version
1.0.1
(Compatible with
OutSystems 11
)
Uploaded
on
3 Feb
by
0.0
(0 ratings)
Overview
Reviews
Versions
Documentation
There's no documentation for this asset yet
Support
HTTP Request Context Items
Details
Expose the key/value collection HttpContext.Items during an HTTP request. https://learn.microsoft.com/en-us/dotnet/api/system.web.httpcontext.items
Read more
Scoped to the Current Request:
The Items collection is specific to a single HTTP request and exists only for the duration of that request.
Once the request is complete, the data in the Items collection is discarded.
Stored In-Memory on the Server:
The Items dictionary resides in memory on the server as part of the HttpContext object. It is never sent to the client and is not persistent across requests.
Designed for Temporary, Per-Request Storage:
It is useful for storing and sharing data within the context of a single HTTP request, particularly between middleware, handlers, or components that process the request.
Use cases
Set dynamic configuration values to be able to retrieve those in the same Server Request, like:
Get those in OnAfterRequest callback to Refresh the IdP Token. (Since isn't possible to pass dynamic attribute)
Keep "Cookies" updated.
If you update an cookie, and try to get it again inside of the same Server Request, you will notice that contains the old value.
This can help you maintain the updated value inside of the Server request, until it sync with the browser at the end of the same.
This is very case specific.
Edit existing collection values. (Advanced)
Etc... (Didn't explore more use cases, but certainly they exist)
Release notes
(1.0.1)
"AddItem" can now be run twice, without exception.
"GetItem" no longer returns '-undifined-' when no value was set before, but rather just "".
License
(1.0.1)
BSD-3 license (
https://opensource.org/licenses/BSD-3-Clause
)
Reviews
(0)
Team
Other assets in this category
Functional libraries & utilities, Other functions & libraries
XML Records
Afonso Carvalho
An extension that allows you to convert an hierarchical structure, composed of Records and/or RecordLists to XML. It also allows you to read an XML into the structure.
8080
Event System
Leonardo Fernandes
Use custom events in your OutSystems apps! Communicate events instantly between web blocks, refactor your screen logic, use divide-and-conquer for complex forms, build reusable components, and much more. And do all of these with a beautifully simple API.
2742
ardoJSON
João Barata
Generic extension for serializing and deserializing Outsystems values into and out of JSON
12584
More from pmmv999
Balloon Tippy.js
pmmv999
Tippy.js is the complete tooltip, popover, dropdown, and menu solution for the web, powered by Popper. (Updated Version)
292
HeatmapJS
pmmv999
This application is intended to be used in website analytics tools to visualize user behaviour. By tracking mouse movements and clicks, this will help website owners understand which areas of a webpage attract the most attention or engagement.
15
Clean Up Login Attempts Logs
pmmv999
A simple module/timer to be able to delete entries from the Service Center module LoginAttempt Table (OSSYS_LOGIN_ATTEMPT)
17
Loading
Loading...