faqts : Computers : Programming : Languages : PHP : Common Problems : Sessions and State

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 27 people (15%) answered Yes
Recently 0 of 10 people (0%) answered Yes


I put a value on session and session work correct same page but in another page this value undifined
session_id do not persist from one page to another
session_id does not persist from one page to another

Nov 15th, 2004 18:04
cool, hooman rahmani, Anda Pacurar,

You need to have a line session_start(); in each page. After that line 
u can access the session variable. Also u need to have something like 
$_SESSION['registervariable']="sdasd"; in the first page.
registervariable is the variable which u access from each page.
I hope this should fix ur problem.