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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
p2grace Posted July 10, 2009 Share Posted July 10, 2009 Try removing this line: session_write_close(); Quote Link to comment 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 =] Quote Link to comment 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.