homepage Welcome to WebmasterWorld Guest from 54.145.172.149
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Problem with Internet Explorer 6.0 and PHP Cookies
brucec

10+ Year Member



 
Msg#: 3304214 posted 1:20 pm on Apr 6, 2007 (gmt 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?

 

ahmedtheking

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3304214 posted 1:26 pm on Apr 6, 2007 (gmt 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?

brucec

10+ Year Member



 
Msg#: 3304214 posted 1:30 pm on Apr 6, 2007 (gmt 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.

ahmedtheking

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3304214 posted 1:36 pm on Apr 6, 2007 (gmt 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

joelgreen

5+ Year Member



 
Msg#: 3304214 posted 1:37 pm on Apr 6, 2007 (gmt 0)

do you set domain and path for cookie?

brucec

10+ Year Member



 
Msg#: 3304214 posted 6:47 pm on Apr 6, 2007 (gmt 0)

No, I do not set the domain or path for cookie. Would that help?

jatar_k

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



 
Msg#: 3304214 posted 9:37 pm on Apr 6, 2007 (gmt 0)

try it

you often have to set it explicitly

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved