Hi
I have a problem to set and use cookie !!
I have followed the example found in wickets example :
Cookie cookieUser = new Cookie("cookieUser", email);
Cookie cookiePassword = new Cookie("cookiePassword", mdp);
cookieUser.setMaxAge(3600);
cookiePassword.setMaxAge(3600);
((WebResponse)getRequestCycle().getResponse()).addCookie(cookieUser);
((WebResponse)getRequestCycle().getResponse()).addCookie(cookiePassword);
There is a problem during compilation :
cannot find symbol method getRequestCycle()...
I have a WebSession objet where i stock the user for right acces
In my WebApplication objet I have declared this :
public Session newSession (Request request, Response response){
return new GestionSession(request);
}
Thank you in advance for your help
--
View this message in context:
http://www.nabble.com/Problems-with-cookie-tp16537484p16537484.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]