inspire Posted September 25, 2007 Share Posted September 25, 2007 I am using php 4.0.5 in windows. I have problem passing the session from page1.php to page2.php Anyone can help me solve the problem ??? page1.php <? $_SESSION['u_name'] = "test"; ?> page2.php <? session_start(); echo $_SESSION['u_name']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/70615-passing-http_session_vars/ Share on other sites More sharing options...
jitesh Posted September 25, 2007 Share Posted September 25, 2007 page1.php <? session_start(); $_SESSION['u_name'] = "test"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/70615-passing-http_session_vars/#findComment-354826 Share on other sites More sharing options...
inspire Posted September 25, 2007 Author Share Posted September 25, 2007 even put the session start in page1.php also not solve the problem. ANY SETTING NEED TO DONE IN PHP.INI Quote Link to comment https://forums.phpfreaks.com/topic/70615-passing-http_session_vars/#findComment-354831 Share on other sites More sharing options...
jitesh Posted September 25, 2007 Share Posted September 25, 2007 page1.php <?php session_start(); echo session_id(); $_SESSION['u_name'] = "test"; ?> page2.php Check you are getting session id same for both the pages. <? session_start(); echo session_id(); echo $_SESSION['u_name']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/70615-passing-http_session_vars/#findComment-354839 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.