Re: [Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Francisco Diaz Trepat - gmail
In the message that I sent I am sure that the text that Igor sent was included. if not here it is: Igor Vaynberg wrote:: onclick() { final string url=urlfor(HomePage.class); getsession().invalidate(); getrequestcycle().pushTarget(new RedirectRequestTarget(url)); } Only this: getRequestCyc

Re: [Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Eelco Hillenius
> Great, both of them worked. > > Only this: > > getRequestCycle().setRequestTarget(new > RedirectRequestTarget(url)); What do you mean? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE

Re: [Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Francisco Diaz Trepat - gmail
Great, both of them worked. Only this: getRequestCycle().setRequestTarget(new RedirectRequestTarget(url)); On 4/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > onclick() { >final string url=urlfor(HomePage.class); >getsession().invalidate(); >getrequestcycle().pushTarget(new

Re: [Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Eelco Hillenius
> onclick() { >final string url=urlfor(HomePage.class); >getsession().invalidate(); >getrequestcycle().pushTarget(new > RedirectRequestTarget(url)); > } Or just onClick() { Session.get().invalidate(); // invalidated after the request is handled setResponsePage(Home.class); } This

Re: [Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Francisco Diaz Trepat - gmail
Off the top of your head again? ¬_¬ (me needs that head). Great thanks. On 4/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: yes i would invalidate the session: onclick() { final string url=urlfor(HomePage.class); getsession().invalidate(); getrequestcycle().pushTarget(new RedirectR

Re: [Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Igor Vaynberg
yes i would invalidate the session: onclick() { final string url=urlfor(HomePage.class); getsession().invalidate(); getrequestcycle().pushTarget(new RedirectRequestTarget(url)); } something like that -igor On 4/24/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: Hello ever

[Wicket-user] Logging Out (What to do with the session)

2007-04-24 Thread Francisco Diaz Trepat - gmail
Hello everyone, I was wondering for a proper way to handle sessions and logging in and out of a wicket application in general. The thing is as follows. I have a Session called WicketSession, inside of which I use a CORBA BUISINESS object labeled m_cSession to do a Login. WicketSession has the f