IE can't get cookie,ie does not support cookie solution, Firefox support

Source: Internet
Author: User

found that with their own computer IE7.0 is always unable to log in normally, other computers can.

It is redirected back to the login page after each login.

Can be replaced by Firefox and Google Chrome but all OK, and later to upgrade the browser to the IE8.0 problem depends on. I could not help remembering that I had before

Times also encountered in the case, then really did not have time to find the reason, directly to restore the system. After the restore is right. This time again met, depressed.
Preliminary inference should be a question of cookies. Check the information online, delete all existing cookies, and set the "privacy" option to "accept the

Have a cookie "and try again. Ask still.
No way, only grab the bag. Behold, the problem is found:

expires=tue,1-jul-2009 14:23:00 GMT; path=/

The expiry time of the cookie seems wrong, today is July 8 ... Oh, finally remembered, last night I seemed to do something to put my machine

The date of the device was changed, and then it was forgotten.

But why use Firefox no problem?
Search the next, see an article of IE and Firefox different understanding of cookie time this article suddenly dawned :

for IE , the effective time period for a cookie is the interval between the time that is understood as the client and the server side, that is, if the cookie is set to time () +300, in IE, The valid conditions for a cookie are: Client time (authentication cookie time)-server-side time (time to define cookie) <300 (seconds); So in this case, when the verification code script on our website is executed, the cookie expires, so the verification code is invalidated.
for Firefox , the effective time of the cookie is entirely determined by the server-side time, taking the above hypothesis as an example: the server-side time T2 (Verify cookie time)-server-side time T1 (time to define cookie) <300 (seconds). So in Firefox, when you open the System login page, I enter the user name, password and verification code time certainly not more than 300 seconds, natural can log in normally. Firefox cookie does not depend on the server time, can be seen, Firefox is fully consider the server side and the client jet lag problem.

After the matter, not because of the recent company just on the server, the program also encountered this situation, IE has a problem, Firefox no problem, and run the site on the server is not a problem, and later busy, do not want to reload IIS, are their own program to change some. Can barely be used. is also the server time is not right, immediately remotely connected to the server, a look at the server date: July 6, today is clearly July 8, so, finally put the cause of this annoying problem found.

IE can't get cookie,ie does not support cookie solution, Firefox support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.