Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
On many servers, session_start() belongs at the very top of the page, in fact it won't work if it isn't the very first line, and isn't on a line by itself, with not even a space after the semi-colon.
But besides that, all I see you doing is stuff with the database. Shouldn't you just be using the $_SESSION[] superglobal, as your title seems to indicate? As far as I am aware, session_start() is only used when you need access to it.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 08-29-2008 at 08:46 AM..
|