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

Cookie Question - Get Expiration Time?

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
0
0
US
I am setting the following cookie:

setcookie("cook1", $a1, time()+600);

Is it possible to get the exiration time of the cookie?

I.e.

Cook1 expires on 2006-10-12 09:43:00

thx as always
 
Do you mean when a script sets a cookie, can subsequent scripts determine the expiration date/time of that cookie just from data sent by the browser?

No. When your browser communicates with the subsequent scripts, it only transmits the cookie's name and value. The browser keeps the expriation date/time to itself.





Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top