markvaughn2006 Posted March 5, 2010 Share Posted March 5, 2010 I'm having a problem keeping users logged in, in Internet Explorer. The session is working fine and the cookies are working fine in FireFox (of course)... here is my cookie code: setcookie("user_id", $_SESSION['user_id'], time()+60*60*24*60, "/"); setcookie("user_name", $_SESSION['user_name'], time()+60*60*24*60, "/"); Quote Link to comment Share on other sites More sharing options...
markvaughn2006 Posted March 5, 2010 Author Share Posted March 5, 2010 oh and btw, i've tried several computers, and different privacy settings to include "accept all cookies" and when i look for the cookies, i don't see them in there, but firefox stores them just fine... Quote Link to comment Share on other sites More sharing options...
freakstyle Posted March 5, 2010 Share Posted March 5, 2010 What's your problem though? is the cookie not available in page requests after it's set, is it being removed too soon, is it not being set? What happens if you set the cookie, and then print out the cookie right after it? Does that work at least? Quote Link to comment Share on other sites More sharing options...
markvaughn2006 Posted March 6, 2010 Author Share Posted March 6, 2010 i'm not seeing the cookie where all the other IE cookies are stored, i see the favicon cookie but thats it...to be honest i'm not having the problem, a bunch of users are having it though. When they close their browser and open it back to page, they are logged out. Session is fine though...Firefox is fine of course though too... any help?? Quote Link to comment Share on other sites More sharing options...
Redlightpacket Posted March 6, 2010 Share Posted March 6, 2010 I tell you this, I had a problem with my broswer not doing sessions right and somebody on here told me to change your session settings in your php.ini file. I think you need to enable sessions and cookies settings. Quote Link to comment Share on other sites More sharing options...
cags Posted March 6, 2010 Share Posted March 6, 2010 Is your site by any chance running in a Frame, or being ran on a host using Frame Redirect? 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.