homepage Welcome to WebmasterWorld Guest from 23.20.149.27
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
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




msg:3304216
 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




msg:3304223
 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




msg:3304229
 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




msg:3304231
 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




msg:3304235
 1:37 pm on Apr 6, 2007 (gmt 0)

do you set domain and path for cookie?

brucec




msg:3304487
 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




msg:3304594
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved