Re: Cookies & sessions

From: Date: Mon, 25 Jan 2010 21:26:05 +0000
Subject: Re: Cookies & sessions
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-301418@lists.php.net to get a copy of this message
On Mon, 2010-01-25 at 22:13 +0100, Nisse Engström wrote: > On Thu, 21 Jan 2010 08:43:58 +1100, clancy_1@cybec.com.au wrote: > > > When you are working with sessions, provided you start your program with session_id(), you > > can then do anything you like with session variables at any point in your program. In my > > original question I asked if there was a cookie equivalent. > > The HTTP spec allows cookies to be sent after the content, > in trailing headers, but it's not usable practically. Few > browsers support it, and PHP certainly doesn't. You'd have > to write a CGI to get away with it. > > The only user agents I know of that support trailers are > the WC3 and WDG validators, and Opera(!). > > Trailer test: > <http://luden.se/http/test/trailer/> > Some results: > > <http://browsershots.org/http://luden.se/http/test/trailer/?p=63> > > > /Nisse > I didn't even know that that was possible. I'm glad in a way that the other browsers and PHP don't support it, as it would make a lot of things more difficult if not impossible to accomplish! Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#301418) next »