Jump to content

cookie problem with Internet Explorer


markvaughn2006

Recommended Posts

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, "/");

Link to comment
Share on other sites

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?

 

 

 

Link to comment
Share on other sites

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??

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.