you should call invalidate() anyway instead of invalidateNow()
there could maybe be usecases where you should call the invalidateNow() for
example if you want to invalidate
the current http session and make in the same request a new one (if that is
possible??)

But you should do invalidate() because that will clean up the session after
the current request ends

johan


On 9/9/07, Chris Lintz <[EMAIL PROTECTED]> wrote:
>
>
> Interesting.  I was using session.invalidateNow() which did not remove it
> from disk.  But session.invalidate() worked like a charm.  Should
> session.invalidateNow() also remove the session from disk immediately?
>
> thanks for your help
>
>
> Eelco Hillenius wrote:
> >
> >> Chris Lintz wrote:
> >> >
> >> > Hi,
> >> > When a user logouts of the site, i want to kill the session and have
> it
> >> be
> >> > removed from disk immediately.  I have extended WebSession properly,
> >> but
> >> > no methods on the WebSession class seem to do the trick for me.
> >> >
> >> > Is there a way to to trigger the removal of the session cleanly from
> >> disk
> >> > via the SessionStore or some other approach?
> >> >
> >>
> >> I think this is done automatically when you call session.invalidate().
> >
> > Yep, that should do the trick.
> >
> > Eelco
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-force-a-delete-%28from-disk%29-of-the-session-from-the-session-store--tf4404925.html#a12580502
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to