[Techtalk] PHP, session variables & cookies

conor.daly at cod.utvinternet.com conor.daly at cod.utvinternet.com
Mon Mar 7 05:24:07 EST 2005


On Sun, Mar 06, 2005 at 12:41:03AM -0600 or so it is rumoured hereabouts, 
Kathryn Hogg thought:
> 
> Sue Stones said:
> >
> > But the issue has come up of whether we are using cookies.  I have kept
> > track of the user id using a session variable.  But I don't know
> > anything about how session variables work, and whether that involves
> > using cookies to keep track of the session.  Does anyone understand the
> > internals of PHP in the regard?
> 
> http://us3.php.net/session
> 
> My understanding is that session ids are typically stored with cookies. 
> The session id is used by PHP to map to a file that contains all the
> session variables.

I kinda thought php's session functions would use cookies if such were
available on the client machine but would use some sort of serverside
tracking if cookies were not an option.  I'm completely not sure of that
though...

Conor
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Hobbiton.cod.ie
 18:22:44  up 27 days,  5:43,  1 user,  load average: 0.04, 0.03, 0.00


More information about the Techtalk mailing list