Re: Session Questions...

From: Date: Thu, 15 Feb 2001 19:19:11 +0000
Subject: Re: Session Questions...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39963@lists.php.net to get a copy of this message
El Jue 15 Feb 2001 12:32, escribiste: > I was reading through the documentation on sessions at > http://www.php.net/manual/en/html/ref.session.html > > I have a few questions.. > > 1) How do I explicitly close a session, so that any subsequent attempts to > use pages would require a new session started? Will session_destroy() do > this? Yes. > 2) I don't want to rely on cookies being set for the client's browser. > What are the security ramifications for passing the SID through the URL? As secure as your server is. But if you compiled php --with-trans-id, then you will have no problems at all. > Most important to me is to understand the overall concept. Can I start and > stop sessions whever I want? Can I start and use one session, then destroy > it, then start a whole new session on the client? Yes, but remember that the data es stored on the server side, not the client side. > I'm just starting to hate the looks of all these encoded urls being thrown > around as i'm developing the site. It is getting more and more complex, > and some of the stuff i'm passing in the urls is ugly, and some of it is > not good to be showing. Try hidding variables in inputs (if you use forms) or store the values in a session. Saludos... :-) -- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: martin@math.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------

« previous php.general (#39963) next »