Hi,
I remember I ran into something like this (tried to set expiry date or
domain/paths) and instead had to get the http response object to add a
cookie, which then worked. You can get the response object via a method
in the RunData object.
Regards,
Dan
On Wed, 12 Mar 2003, Fabio Daprile wrote:
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]