Re: [PHP-DB] Learning PHP Sessions

2001-10-31 Thread Jim Lucas
uot;Steve Cayford" <[EMAIL PROTECTED]> Cc: "Matthew Tedder" <[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 $my

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* current

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 02

Re: [PHP-DB] Learning PHP Sessions

2001-10-30 Thread Szii
collector do the work periodically instead of cleaning up each session individually. 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 3

[PHP-DB] Learning PHP Sessions

2001-10-30 Thread Matthew Tedder
>=*/ if(!isset($PHPSESSID)) { session_start(); session_register("UserName"); session_register("UserPage"); $UserName = "guest"; $UserPage = "Home"; }; /*=<< Main Switchboard for Pages >>=*/ include "includes/bodyhead.html"; switch($action) { case "Home": ShowHome();