|start | find | index | login or register | edit|
by earl, 6791 days agoCookies 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.
!! 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.
5 active users
|earl.strain.at • esa3 • online for 7068 days • c'est un vanilla site|