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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setcookie() expiration

Status
Not open for further replies.

drgenius

Programmer
Oct 14, 2001
46
NL
When does a cookie expire if you omit the expires parameter? Does it live permanently or just during the current session? I would like to create a permanent cookie and I was wondering if it would be enough to just pass a name and value variable to the setcookie() function. It's not a lie if YOU believe it ;-)
 
If you omit it, it will only be kept for the lifetime of the browser session, meaning that it would get thrown away when you close the browser. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top