start | find | index | login or register | edit
Cookie
by earl, 8385 days ago
Cookies are a general mechanism which server side connections (such as CGI scripts) can use to both store and retrieve information on the client side of the connection. The addition of a simple, persistent, client-side state significantly extends the capabilities of Web-based client/server applications.

Original Specification
- http://home.netscape.com/newsref/std/cookie_spec.html

!! Recent browsers are a bit strict in interpreting the old "expires=" cookie name-value pair. The value's format must be "Wdy, DD-Mon-YYYY HH:MM:SS GMT" where "Wdy" may be a 3 letter english weekday abbreviation or a full english weekday name. !!

More recently specified (RFC 2109 - HTTP State Management Mechanism) and prefered (mozilla seems to not support expires= anymore) is the "Max-Age=" name-value pair:

The Max-Age attribute defines the lifetime of the cookie, in seconds. The delta-seconds value is a decimal non- negative integer. After delta-seconds seconds elapse, the client should discard the cookie. A value of zero means the cookie should be discarded immediately.

if max-age is left out the cookie is a session cookie.
powered by vanilla
echo earlZstrainYat|tr ZY @.
earl.strain.at • esa3 • online for 8662 days • c'est un vanilla site