short term cookie storage within a flow
Cantor, Scott
cantor.2 at osu.edu
Tue Dec 6 18:35:32 EST 2016
On 12/6/16, 6:03 PM, "users on behalf of Jim Fox" <users-bounces at shibboleth.net on behalf of fox at washington.edu> wrote:
> Just within the flow. I'm sending a form to the user, which is returned
> right away. I just need the value stored that long.
Ok, lot of options then. You could use a flow scoped variable or in the most "explicit" way you could actually create a custom context class in Java and define it to carry your information and attach that somewhere into the context tree.
Really depends what code is involved setting and accessing the state or if you're already doing custom Java code or not, authoring custom webflows or not, etc.
The scopes are just a SWF version of Java servlet session variables, you have a few scopes you can store data into:
- request
- flow
- conversation (spans all the flows and subflows across the whole sequence)
The scopes are just maps you can get at via the active flow execution object, or if you're writing webflows or views, you can directly create or access named objects in those scopes without much extra syntax.
Anything in webflow space or the IdP ProfileRequestContext tree is safe to use for storing data within a request.
Using Java sessions isn't safe to use unless you do extra work that SWF handles for you so it's best avoided unless you absolutely have to branch out to a servlet.
-- Scott
More information about the users
mailing list