Re: [Zope] Session Management
Timothy Grant wrote I'm completely new to session management, so I started investigating some of the tools available, currently I am working with the FSSession Product. I guess my question is how does one effectively "clear" a session. In other words, I have data stored in the session that on occasion I would like to unilaterally throw away so that a new session will start.
Talking from the point of view of SQLSession, you either call Session with _force_new_session=1, put _force_new_session=1 into the REQUEST, or, if you just want to keep the session ID, but nuke the data, call SESSION.clear(). I'd imagine FSSession would have a similar API - check the code.
Also, using the FSSession product, how does one pass session information between folders?
Can't you just put the session in the folder above the ones that should have access to it? Anthony -- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
Talking from the point of view of SQLSession, you either call Session with _force_new_session=1, put _force_new_session=1 into the REQUEST, or, if you just want to keep the session ID, but nuke the data, call SESSION.clear(). I'd imagine FSSession would have a similar API - check the code.
Wouldn't it practical to have a mechanism to synchronies different API's between different similar Products? Making Products more exchangeable? As I see it API's will change over time, making such a mechanism a good way to communicate the changes back to the community. Just a thought. Regards, Johan Carlsson
On Mon, 3 Jan 2000, Anthony Baxter wrote:
Talking from the point of view of SQLSession, you either call Session with _force_new_session=1, put _force_new_session=1 into the REQUEST, or, if you just want to keep the session ID, but nuke the data, call SESSION.clear(). I'd imagine FSSession would have a similar API - check the code.
Right now a call to "FSSession.clear()" will nuke the data, but for compatibility with Anthony's SQLSession I will add the _force_new_session option. BTW why should someone want to change the Session ID?
Also, using the FSSession product, how does one pass session information between folders?
Timothy, I just checked your set up and everything works fine in my case. No errors when you call FSsession and Session contents can be accessed from any Folder as long as the FSSession is in the acquisition path. Can you give me some more info on the errors you got? Pavlos
participants (3)
-
Anthony Baxter -
Johan Carlsson -
Pavlos Christoforou