djdealer Posted July 9, 2009 Share Posted July 9, 2009 I use login script: session_start(); session_regenerate_id(); $_SESSION[id] = $rows[id]; session_write_close(); header("location: logged_in.php"); in other browsers this work fine, but in IE i get back on login page. i tested echo $_SESSION[id] after i give value to $_SESSION[id], it show my needed id, but when i test echi $_SESSION[id] in logged_in.php page, $_SESSION[id] was be emty! where is problem? Why only on IE this not work? Link to comment https://forums.phpfreaks.com/topic/165410-problem-with-session-in-ie/ Share on other sites More sharing options...
p2grace Posted July 10, 2009 Share Posted July 10, 2009 In the logged_in.php file do you recall the session_start()? The session needs to be ran on every page that calls session variables. Link to comment https://forums.phpfreaks.com/topic/165410-problem-with-session-in-ie/#findComment-872556 Share on other sites More sharing options...
djdealer Posted July 10, 2009 Author Share Posted July 10, 2009 yes, session_start() i recall on top of every page. Link to comment https://forums.phpfreaks.com/topic/165410-problem-with-session-in-ie/#findComment-872682 Share on other sites More sharing options...
p2grace Posted July 10, 2009 Share Posted July 10, 2009 Try removing this line: session_write_close(); Link to comment https://forums.phpfreaks.com/topic/165410-problem-with-session-in-ie/#findComment-872856 Share on other sites More sharing options...
djdealer Posted July 11, 2009 Author Share Posted July 11, 2009 i don`t know how, but i have done it. i don`t do anything, but it start working in IE too. anyway tnx =] Link to comment https://forums.phpfreaks.com/topic/165410-problem-with-session-in-ie/#findComment-873360 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.