Hi all,

I have a problem...

I have 3 pages in a search mechanism.

Page 1 (Search.php) 
unsets all related session variables. 
It then displays a form which allows the user to specify search
criteria. Submission sends us to Page 2

Page 2 (generateListSQL.php)
Sets up the basic database search query
Adds the filters specified in page 1 to the search query
Each filter is saved as a session variable (using $_SESSION['varname'] =
$_GET['varname'];) to re-process later if needed
Saves the final (working) SQL queries as session variables
Calls Page 3

Page 3 (ListBPF.php)
Displays the filter conditions (from the Session Variables)
Executes the query
Displays the results in a table.

This all works - on the first attempt. Subsequent attempts will happily
overwrite the session variables, but will not remove them (as specified
in page 1)
Page 1 startes with:

Session_start();
$_SESSION['variablename1'] = null;
unset ($_SESSION['Variablename1'];
$_SESSION['variablename2'] = null;
unset ($_SESSION['Variablename2'];
$_SESSION['variablename3'] = null;
unset ($_SESSION['Variablename3'];

And so on.
Why will this not work? I refresh the page. I am using PHP 4.2.2.
Register Globals - Off, Track Vars - on. Any ideas why the session
variables refuse to be unset?

Thanks


David Russell
IT Support Manager
Barloworld Optimus (Pty) Ltd
Tel: +2711 444-7250 
Fax: +2711 444-7256
e-mail: [EMAIL PROTECTED]
web: www.BarloworldOptimus.com

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to