Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie Expiration

Status
Not open for further replies.
from the CGI docs:[tt]
$cookie = $query->cookie(-name=>'sessionID',

-value=>'xyzzy',

-expires=>'+3h',

-path=>'/cgi-bin/database',

-domain=>'.capricorn.org',

-secure=>1);

print $query->header(-cookie=>$cookie);[/tt]

sets the cookie expiration to three hours from when it's set (that's the '+3h' part). "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top