Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 6, 2007, 5:07 pm
rate this thread
what I recently read, but it isn't working as I was expecting. Please
tell me what I'm doing wrong?
I have defined my session handlers in a session handler include file,
sessions.php. This file calls session_set_save_handler() and also calls
session_start(). Each handler function operates correctly when I login
- the data is put into the session table.
After successful login, the user is redirected to /path/index.php, which
includes sessions.php. session_start() is called again, but the
$_SESSION global has no data.
I know the individual pieces of code are working properly, because at
one point in the process they individually worked. But when I put it
all together, it just keeps going back to the login page.
Thanks in advance