Welcome to WebmasterWorld Guest from 54.224.194.28

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Problem with Internet Explorer 6.0 and PHP Cookies

     
1:20 pm on Apr 6, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Jan 23, 2004
posts:338
votes: 0


I have a PHP application which allows members to log in and their information is saved and retrieved from a MySQL database.

People cannot log in using Internet Explorer 6.0, but have no problem logging in with Firefox and Internet Explorer 7.0.

This is the only cookie I use on the site. Does anyone else know of this problem with PHP Cookies and IE 6?

1:26 pm on Apr 6, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 12, 2004
posts: 789
votes: 0


Hmmm wouldn't have thought so. What's the error? Does IE6 just return nothing? Have you tried using PHP Sessions in your URLs as well as cookies?
1:30 pm on Apr 6, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Jan 23, 2004
posts:338
votes: 0


No errors are reported. It just does nothing and the user cannot log in.

I tried using session variables, but they never work for me. LOL. The cookie was a substitute for the session variables, but I would like the cookie to store the info for later logging.

1:36 pm on Apr 6, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 12, 2004
posts: 789
votes: 0


See now I also thought that PHP Sess never worked for me til I realised that they're cookie based too! They are only entered into the URL when the user's browser can't accept cookies. I think you should try it out, because you can also store data within the session. Instead of doing $_COOKIE, do you $_SESSION
1:37 pm on Apr 6, 2007 (gmt 0)

Preferred Member

5+ Year Member

joined:July 31, 2006
posts:629
votes: 0


do you set domain and path for cookie?
6:47 pm on Apr 6, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Jan 23, 2004
posts:338
votes: 0


No, I do not set the domain or path for cookie. Would that help?
9:37 pm on Apr 6, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


try it

you often have to set it explicitly