Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with shopping cart
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with shopping cart

 Post Reply Post Reply Page  <12
Author
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 5:41am
I am hitting this problem too.

In IE (at least in 6), if you disable cookies that's fine, cookies are disabled but the session ID remains throught the session (as you'd expect).

However, in Opera and Netscape 4.7 (and probably others), for some reason as yet unknown, if you disable cookies then you get a new session ID each time you call a new page or refresh the existing one.

This is very bad. I too am developing an application that will primarily use cookies to track and maintain a user's information; however so as to not bar people with cookies disabled, I am using the session ID as a fall-back (albeit with the proviso that users with cookies disabled will be more limited in their idle time, in case the session times out, and will also be in bother if they get disconnected).

However, if the browser gets the server to generate new session IDs when you change pages with cookies off, this rather negates the entire purpose of said fall back!

Does anyone have any ideas as to how to overcome this problem, which seems to be caused by slightly erroneous browser building?

Edit: Mamin, this looks to be exactly your problem - in IE6 I can turn off cookies and your site still works; in Opera if I do this the site tells me I need cookies turned on and it doesn't work.

Edited by pedalcars
www.pedalcars.info

The most fun on four wheels

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 9:14am
Having investigated further, it appears the problem may be that Opera (and presumably netscape) treats the session ID as a session cookie, so if cookies are disabled, no session ID is stored and a new session is started each time.

Not good.

If this is indeed the case, it would appear the only way around it is to write the initial session ID into the querystring; however this creates some new potential problems, as Ljamal suggests.
www.pedalcars.info

The most fun on four wheels

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 10:36am
More investigation indicates that even if you block all cookies in IE6 and leave the "accept session cookies anyway" box unchecked, IE *still* accepts session cookies! Anyone with the web wiz news app will be able to confirm this as the login requires session cookies, and it works for me even though I did the above before trying to access the news admin.

So, it appears that Opera and Mozilla/Netscape are annoying and do things wrong, while IE lies to you and does things, er, wrong!

www.pedalcars.info

The most fun on four wheels

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.