Thanks guys. This will solve my problem. Bilgin
On Tue, Jun 29, 2010 at 6:10 AM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote: > alternatively requestcycle#onbeginrequest() is also a good place > > -igor > > On Mon, Jun 28, 2010 at 7:05 AM, M. Hammer <nab...@hammer-tour.com> wrote: > > Quoting Bilgin Ibryam <bibr...@gmail.com>: > >> > >> I want to implement "Remember me" functionality by storing the > encrypted > >> and base64 encoded username in a cookie. > >> Then I'd like to check for the cookie on the very first request (or > every > >> request) to the application. > > > > Hi, > > > > I do this in the newSession() method of my Application subclass. This > method > > is called for the first request of a user, and possible for subsequent > > requests if the requested page is stateless. If a cookie is found, I copy > > the contents to the user's session and use it from there. > > You have to cast Request and Response to WebRequest and WebResponse, and > you > > can use getCookie() and addCookie(), respectively. > > > > Regards, > > Moritz > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >