Jeff Smelser wrote:
>
> How do you set expires in ASP cookies?
>
> I tried, and various other ways too. Even nodeworks.com wouldn't work for
> me. Thanks.
>
> $expires=&HTTP::Date::time2str(time()+86400);
> $Response->{Cookies}{'username','Expires', '$expires'} =
> $Request->Form('username');
> $Response->{Cookies}{'password'} = $Request->Form('password');
>
Try:
$Response->{Cookies}{username} = {
Expires => 86400,
Value => $Request->{Form}{username}
};
or
$Response->Cookies('username', 'Expires', 86400);
$Response->Cookies('username', 'Value', $Request->Form('username'));
See the $Response->Cookies collection in the OBJECTS section
of the README or the website http://www.apache-asp.org
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051