Re: [PHP-DB] Learning PHP Sessions

2001-10-31 Thread Steve Cayford
This is really off-topic for this list, but... From my understanding of sessions, you really don't want session_start() in an if{} block. Every time you hit this script, it will have no memory of any session variables until you call session_start(). -Steve On Tuesday, October 30, 2001, at

Re: [PHP-DB] Learning PHP Sessions

2001-10-31 Thread Russ Michell
* session_register('myvar'); creates a session var called $myvar * session_start(); needs to be called from the top of each script that will need the session var $myvar * session_destroy('myvar'); rids you of $myvar completely. * session_destroy('HTTP_SESSION_VARS'); rids you off *all*

Re: [PHP-DB] Learning PHP Sessions

2001-10-31 Thread Jim Lucas
[EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, October 31, 2001 8:44 AM Subject: Re: [PHP-DB] Learning PHP Sessions * session_register('myvar'); creates a session var called $myvar * session_start(); needs to be called from the top of each script that will need the session var $myvar

[PHP-DB] Learning PHP Sessions

2001-10-30 Thread Matthew Tedder
?php /* Hi, I'm new to PHP and am having trouble understanding how to use PHP sessions. My book tells in near the beginning how to start them and register session variables, but I can't figure out how to destroy a session or later read those session variables. I'm also trying to do this

Re: [PHP-DB] Learning PHP Sessions

2001-10-30 Thread Szii
. Check out http://www.php.net/manual/en/ref.session.php 'Luck -Szii - Original Message - From: Matthew Tedder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 12:30 PM Subject: [PHP-DB] Learning PHP Sessions ?php /* Hi, I'm new to PHP and am having trouble