You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jeff Smelser <tr...@bigfoot.com> on 2000/08/25 12:35:12 UTC

Cookies

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');


Jeff

                    


Re: Cookies

Posted by Joshua Chamas <jo...@chamas.com>.
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