Re: How does php server identify that the particular session belongs to particular user

From: Date: Fri, 11 Jun 2010 07:45:37 +0000
Subject: Re: How does php server identify that the particular session belongs to particular user
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306037@lists.php.net to get a copy of this message
On Fri, 2010-06-11 at 13:01 +0530, Peter wrote: > Hi All, > > My Question is "How does php server identify that the particular session > belongs to particular user?" > > Please help me out > > Regards > Peter.m > All the session data is stored on the server either in a database, file or memory against a unique ID value. The server handles how this is done, and it's likely you won't ever need to get involved with changing how it does things. >From the client-side of things; the user agent (browser) sends this unique ID either as part of the URL or with the headers as a post variable, which is why you may see a PHP_SESSION_ID (or something similar) index in the $_REQUEST array when you use session_start() in your scripts. Has this helped? Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#306037) next »