chiaki*misu Posted August 19, 2009 Share Posted August 19, 2009 hye all im creating a session.. in my first page.. <?php session_start(); $_SESSION['name']; $_SESSION['id']; ?> name and id are my form names.. then the second page.. <?php session_start(); echo "name is : " .$_SESSION['name']; echo "id is : " .$_SESSION['id']; ?> so..what did i miss? and..when do i use ob_start and ob_flush? r they necessary for my session? Link to comment https://forums.phpfreaks.com/topic/170925-session/ Share on other sites More sharing options...
chiaki*misu Posted August 19, 2009 Author Share Posted August 19, 2009 and i put a submit button at my first page..is it correct? Link to comment https://forums.phpfreaks.com/topic/170925-session/#findComment-901506 Share on other sites More sharing options...
PFMaBiSmAd Posted August 19, 2009 Share Posted August 19, 2009 $_SESSION['name']; $_SESSION['id']; Does not mean anything. You are not assigning anything to those variables. Link to comment https://forums.phpfreaks.com/topic/170925-session/#findComment-901511 Share on other sites More sharing options...
chiaki*misu Posted August 19, 2009 Author Share Posted August 19, 2009 so ..it should be: $_SESSION['name']=name; $_SESSION['id']=id; is that right? Link to comment https://forums.phpfreaks.com/topic/170925-session/#findComment-901512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.