RE: [PHP] session OR variables
| From: | Ford, Mike [LSS] | Date: | Wed, 13 Mar 2002 12:57:54 +0000 |
| Subject: | RE: [PHP] session OR variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88317@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Vlad Kulchitski [mailto:vlad@alidaconnection.com]
> Sent: 11 March 2002 21:23
>
> I have a question. I am working on a submit form that will
> ask you for confirmation of info. I.e. I need to move values
> submitted via form through 2 different pages. One of the ways
> to do it is via session_start(). Another way to do is it via
> storing variables in a QUERY_STRING and that's my favourite to
> be honest (page.php?a=432&b=$this)
>
> The question is how reliable the session is? In other words
> I understand session works based on cookies right? So if the client
> browser has cookies disabled the session is not going to work
> right?
Wrong. The *session id* is stored using a cookie if cookies are enabled; otherwise it is passed
from page to page as part of the URL. In either case, all the session's data are actually
stored on the *server*, and the session id is used as a key to them.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211