Hello,

i'm trying to set a cookie to the client so that users should not retype their passwords each time they try to login the application.
Here is the piece of code


             _cp = data.getCookies();
             DynamicURI dui = new DynamicURI(data, "/");
             dui.removePathInfo();
             dui.setScriptName("/");
             _cp.setCookiePath(dui);

             _cp.set("username", username, 60*60*24*365);
             _cp.set("password", password, 60*60*24*365);

what happens is that the password is set with an expires: at the end of the session, instead of with the delay specified.

why this happens?

hope you can help me.

Greetings

Fabio Daprile

--
************************************
W�rth Phoenix S.r.l.
Fabio Daprile

Via Kravogl 4
I-39100 Bolzano
Phone: +39 0471  564111 (direct 564066)
Fax: +39 0471  564122
mailto:[EMAIL PROTECTED]
http:// www.wuerth-phoenix.com
*************************************



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to