Session errors in Firefox

Source: Internet
Author: User
Session exception in Firefox I wrote a shopping cart program. it is strange that the results in different browsers are different. This is the server code, and it has nothing to do with the browser. The specific symptom is that after the number of objects in the shopping cart is updated under Firefox and Opera, the Session will become empty. In addition, after an item is added, the number is 1. However, after the item is added, the session is abnormal in Firefox.
I wrote a shopping cart program by myself. it is strange that the results are different in different browsers. This is the server code, and it has nothing to do with the browser. The specific symptom is that after the number of objects in the shopping cart is updated under Firefox and Opera, the Session will become empty. In addition, after adding an item, the number is 1. but after adding the item, check the shopping cart again, and the number is 2. The same operations are good in IE, Chrome, and Safari. I don't know if anyone has encountered such a situation.

The link to the website is: (I do not know whether direct link sending is appropriate. if not, ask the administrator to delete the following content)
Http://www.qtbox.co.uk
Access the following link to add an object to the shopping cart:
Http://www.qtbox.co.uk/cart.php? Action = add & pid = qt2010 & x = 47 & y = 14
Then, enter the following in the browser address:
Http://www.qtbox.co.uk/cart.php
It will be found that it is normal in IE, and will become 2 in Firefox, and new objects will be added continuously, except that the last object is 1, and the others will become 2.

In addition, the number cannot be updated. if the number is updated, the session of the shopping cart becomes null.

Please explain why this problem occurs?


------ Solution --------------------
Discussion
Thanks for your suggestions, but Javascript in HTML has nothing to do with Session. In addition, since the Session is on the server side, it should have nothing to do with Javascript. why Check Javascript?

------ Solution --------------------
Discussion
Reference:
It may be related to cookies, and browser cookie security is set to low-level

This setting should be in IE, but IE is normal. does Firefox seem to have no level concept?

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.