Re: Clear all sessions?

2008-08-05 Thread Johan Compagner
why do you want to do that?
(talking about a production environment now)


On Sun, Aug 3, 2008 at 6:44 PM, Ryan McKinley [EMAIL PROTECTED] wrote:

 Hello!

 Is there any way to clear all the session/state data for all users ?

 I have tried implementing an ISessionStore (SecondLevelCacheSessionStore)
 that hangs on to (wicket) Sessions between onBind and onUnbind.  When I want
 to clear then, I call invalidate() on all sessions.

 This does not work because invalidate() needs to be called within the
 Request for that Session.

 Any ideas?

 Thanks
 ryan


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Clear all sessions?

2008-08-04 Thread lars vonk
Don;t know if there is a Wicket way of doing this but you could do it
kind of brute force by clearing out the underlying HttpSessions. Using
a HttpSessionListener you can get notified on sessionCreated and
sessionDestroyed.


Lars

On Sun, Aug 3, 2008 at 6:44 PM, Ryan McKinley [EMAIL PROTECTED] wrote:
 Hello!

 Is there any way to clear all the session/state data for all users ?

 I have tried implementing an ISessionStore (SecondLevelCacheSessionStore)
 that hangs on to (wicket) Sessions between onBind and onUnbind.  When I want
 to clear then, I call invalidate() on all sessions.

 This does not work because invalidate() needs to be called within the
 Request for that Session.

 Any ideas?

 Thanks
 ryan


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Clear all sessions?

2008-08-03 Thread Ryan McKinley

Hello!

Is there any way to clear all the session/state data for all users ?

I have tried implementing an ISessionStore  
(SecondLevelCacheSessionStore) that hangs on to (wicket) Sessions  
between onBind and onUnbind.  When I want to clear then, I call  
invalidate() on all sessions.


This does not work because invalidate() needs to be called within  
the Request for that Session.


Any ideas?

Thanks
ryan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]