session variables

View: New views
3 Messages — Rating Filter:   Alert me  

session variables

by thomas.0007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cache module is a great place to store application scope data. Some times
there is a need to store data with session scope.
Is there a way to add data to the session object in a similar way as the
cache module, but that will automatically be released when the session
object expires?

Tom




------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: session variables

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

session:get-attribute() and session:set-attribute()

You can store anything in there, including node sets if nessecary. I
would recommend keeping the session data as small as possible in any
application.

2009/7/1 Thomas White <thomas.0007@...>:

> Cache module is a great place to store application scope data. Some times
> there is a need to store data with session scope.
> Is there a way to add data to the session object in a similar way as the
> cache module, but that will automatically be released when the session
> object expires?
>
> Tom
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

session expired problem

by Dmitriy Shabanov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it a bug or what?

I use jetty session (jsession as I can understand) for user and password
information. The page is loading only ones and java script do rest
(communications with database throw rest interface). After several hours
session is expired, strange that there 15 seconds interval requests. Why
do that happens?

Current work around is increase session to be valid for 20 hours (jetty
one), but it will not help on big sites.

Should I use eXist session?

Dmitriy Shabanov


------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open