i am using php to develop web applications. i used session to pass information from one page to other page. but the session is reset when it comes to other page. i think it is due to wrong scope of sessions(page scope)! am i correct? if it is the problem, then how to overcome the problem? please help me. thanks in advance!
Share
You need to put
session_start()at the beginning of every page – this will start a new session, or, in your case resume a stored session, along with it’s variables. This will work unless you callsession_destroy()before navigating to the new page.Hope this helps,
James