[Zope] Session Management

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Mon, 03 Jan 2000 17:37:27 +1100


>>> 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.