Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: sessions??

  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post

    sessions??

    ok, i have built a completely custom shopping cart from scratch. on each product page (HTML) is an order summary (shows the order number and the subtotal all drawn from a database). The cartid for the user is stored as a session variable. Now, when the user clicks on view cart, the cart always opens in a new window/tab.

    Now I was under the assumption that sessions worked across all the tabs/windows of the session of the browser (i.e. so when the cart is updated, the summary is updated on refresh of the other page) and Internet Explorer seems to agree, although Firefox doesn't seem to!!

    For some reason sessions dont seem to work across windows/tabs in FF??

    Is this the case?!?!

    Cheers

    The Moose

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Are you specify a session name? My applications do, and the session remains intact across tabs and windows in Firefox.

    http://us.php.net/manual/en/function.session-name.php


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •