Page 1 of 1

session erased when I move from one page to anther

Posted: Thu Mar 24, 2011 5:09 am
by programAngel
Hi I have written a program in php.
The program is used in session.
It used session, however because of some reason the session is erased when I move from one page to anther.

What can cause this?

Re: session erased when I move from one page to anther

Posted: Thu Mar 24, 2011 5:44 am
by vishal_arora
i think when going from one page to another you must need to add session_start() on all files. than session is not erased

Re: session erased when I move from one page to anther

Posted: Thu Mar 24, 2011 8:43 am
by Bind
post your source code if you want assistance that is not stabbing in the dark with guesses.