RE: [PHP] session OR variables

2002-03-13 Thread Ford, Mike [LSS]

> -Original Message-
> From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
> 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: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] session OR variables

2002-03-11 Thread Jan Rademaker



On Mon, 11 Mar 2002, Vlad Kulchitski wrote:

> 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?

Not per se, cookies is one way of using sessions. The other way is to use
the special var SID (without the $ sign, so a constant in a way) like this
(from the manual):

To continue, click here

And concerning the reliability, if you store data in a session a user
can't fiddle with the values as easily as when you would save your data
the url.

Jan
> 
> Vlad
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php