Session with php problem

Status
Not open for further replies.

HaSaN

Solid State Member
Messages
10
hello guys
i have a problem ..
i puted in all my php files the session_start() insastruction, the problem is that when i open a file a new session will created and never a session will continue.

i regestred many variabels in a session and when i change the page the browser forget the values i checked the sessions folder and i remarked that new files were created.

I read in books that this instruction continue the session if it was created and create it if it wasn't.

please tell me waht should be the problem.

please please please HELP!!
 
You *might* have to manually set the session id on all the pages. It's supposed to pass it in a cookie and automatically set it but you never know.
 
I know I know

I mean when you got to a new page you might have to set the ID for it to recognize the sessions which means you have to pass it in a the url. I've had to do that before even thought it's supposed to load the id automatically.
 
um... do you have cookies enabled when you test it?
mmMMmmm.... Cookies.....

or you can try changing the session.cookie_lifetime thingee in the php.ini file??

sorry if I'm wrong, I ran outta coffee this morning, but thank god for cookies... MmmMMmmMmmm
 
thanks man

i think it's a problem of life time i'll try and i reply as soon as possible
 
Status
Not open for further replies.
Back
Top Bottom