How to force a delete (from disk) of the session from the session store?
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? thanks -- 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#a12566791 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a delete (from disk) of the session from the session store?
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]
Re: How to force a delete (from disk) of the session from the session store?
Sure it should. And breefly looking at the code it looks like it does. But if it's not the case please file a jira issue for it. Thanks. -Matej 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a delete (from disk) of the session from the session store?
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] > >
Re: How to force a delete (from disk) of the session from the session store?
Thanks all. I submitted a JIRA - https://issues.apache.org/jira/browse/WICKET-953 session.invalidateNow() does not remove the session from disk. invalidate() does though. Matej Knopp-2 wrote: > > Sure it should. And breefly looking at the code it looks like it does. > But if it's not the case please file a jira issue for it. Thanks. > > -Matej > > 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] >> >> > > - > 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#a12606296 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a delete (from disk) of the session from the session store?
i think invalidateNow does invalidate the session right now but after the request ends we still are saving the last page again So the file is recreated johan On 9/11/07, Chris Lintz <[EMAIL PROTECTED]> wrote: > > > Thanks all. I submitted a JIRA - > https://issues.apache.org/jira/browse/WICKET-953 > session.invalidateNow() does not remove the session from > disk. invalidate() > does though. > > > Matej Knopp-2 wrote: > > > > Sure it should. And breefly looking at the code it looks like it does. > > But if it's not the case please file a jira issue for it. Thanks. > > > > -Matej > > > > 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] > >> > >> > > > > - > > 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#a12606296 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: How to force a delete (from disk) of the session from the session store?
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(). -- 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#a12570175 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a delete (from disk) of the session from the session store?
> 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]