Re: Validation and session variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux