session erased when I move from one page to anther

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
programAngel
Forum Newbie
Posts: 1
Joined: Thu Mar 24, 2011 5:05 am

session erased when I move from one page to anther

Post 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?
vishal_arora
Forum Newbie
Posts: 8
Joined: Thu Mar 24, 2011 5:08 am

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

Post 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
Bind
Forum Contributor
Posts: 102
Joined: Wed Feb 03, 2010 1:22 am

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

Post by Bind »

post your source code if you want assistance that is not stabbing in the dark with guesses.
Post Reply