PHP Session
Posted: Wed Mar 12, 2008 6:54 pm
Hi everyone,
I am having a problem with my sessions. I have installed everything and everything is working, producing the correct page and connecting to my db but I am registering a session through a login function which is being written correctly and it is also be registered correctly. However when I try to read the value of the session with $_SESSION['username'] it produces nothing. Its like the session has been registered but it is empty.
This only happens locally. I have uploaded my code to a hosting server and everything works perfectly. Its a bit frustrating as I would like to develop locally and test and produces the same results as I would when my code has been uploaded.
Has anyone any info on what could be causing this?
My session write path is C:\php\session
Thanks
I am having a problem with my sessions. I have installed everything and everything is working, producing the correct page and connecting to my db but I am registering a session through a login function which is being written correctly and it is also be registered correctly. However when I try to read the value of the session with $_SESSION['username'] it produces nothing. Its like the session has been registered but it is empty.
This only happens locally. I have uploaded my code to a hosting server and everything works perfectly. Its a bit frustrating as I would like to develop locally and test and produces the same results as I would when my code has been uploaded.
Has anyone any info on what could be causing this?
My session write path is C:\php\session
Thanks