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
* 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*
[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
/*
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
.
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