Re: Validation and session variables

From: Date: Wed, 27 Oct 2004 13:55:09 +0000
Subject: Re: Validation and session variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200441@lists.php.net to get a copy of this message
Stuart, On Oct 27, 2004, at 6:57 AM, Stuart Felenstein wrote:
Not to be redundant but here is the code again:(I xxx'ed out some fields in the restrict access line so they are not public) <?php
Put session_start() here!
//Connection statement require_once('Connections/MYSQLWH.php'); //Aditional Functions require_once('includes/functions.inc.php'); //load the tNG classes require_once('tNG/KT_tNG.inc.php'); //Start the Session - begin Block @session_start();
You should move your session_start() to the VERY top. =D Just see if that makes any difference. You might also make sure there is a session_id: if (session_id()) // do stuff else // throw computer out the window Have fun! ~Philip

« previous php.general (#200441) next »