Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Firefox not saving sessions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Firefox not saving sessions

 Post Reply Post Reply Page  <12
Author
musikksmaken.com View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote musikksmaken.com Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2009 at 6:51pm

The problem is as following, as I described to Opera:

ASP session makes more cookies then Opera can hold
Background:

I've met a big problem. Since I'm using Ajax to keep some selected parts of my site up do date with out user interaction, new ASP session cookies are created more often. I think my host, that host my site on a shared Windows server, from time to time (the interval can variate) creates new ID's for sessions, and then a new cookie is sent to the browser. When this happen, the old cookie isn't deleted. These cookies doesn't contain any expiration date, but only the date for the last time it was used. The case then is that no unused session cookies aren't deleted before the browser is closed and re-opened by the user.

My problem:

Since I want users to stay logged on to the site and my forum, I allso use cookies for this. A custom cookie is sent to the browser that keeps a user code so my site can identify and check if the details are ok. When new session cookies are made, the login cookie keeps getting pushed down on the list. At last there is 30 cookies stored. What happens then is that the login cookie falls out of the list. After that, there is no way to write a new login cookie even when it doesn't excist in the browser any more, and I get strange errors. The only way to log on again, is to close and re-open the browser.

How can this be avoided? Is there a bug in Opera since the login cookie doesn't appear on top of the cookie list again? I understand that there is a limit of how many cookies the browser can hold.

Back to Top
musikksmaken.com View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote musikksmaken.com Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2009 at 6:55pm
The case is:
1: I use a custom cookie to hold login details
2: IIS creates cookies with session ID's for other purposes
3: Cookie list is full of cookies with session ID's after a long time use
4: Session cookies pushes login cookie out of the list
5: Login cookie can't be created again before closing the browser so it delets the session cookies (or manually delete at least one of them)
6: This makes it impossible for users to log in
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2009 at 8:53am
This is a bit confusing as your posts aren't really related to the previous posts in this topic, maybe a new topic would have been better.

Web Wiz Forums does not use the ASP session for logins, it uses a combination of cookies (if you use the auto login feature) and it's own session proprietorial sessions that use either the web servers memory or the database to store session data for the user, it does not use the ASP session and also does not require cookies which can be disabled in the users browser.
Back to Top
musikksmaken.com View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote musikksmaken.com Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2009 at 10:27am
Ok. The problem is that the server which creates Session Cookies, creates multiple session cookies over time. After a while there is to many cookies in the browsers cookie pool, pushing other cookies (including the cookie used for login on) out of the list and hence the error.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2009 at 1:27pm
This does not appear to be a forum support issue, but rather something to do with your ajax coding you are using on your site pages (non forum pages)
Perhaps in your pages you are not closing the sessions correctly, and hence it keeps duplicating cookies one after the other
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 9:49am
I have to agree with MrTWS this is not really an issue with Web Wiz Forums but rather an issue with your server.

The server should only create 1 ASP session per users visit. The session cookie should be deleted by your browser after 20 minutes of inactivity.

If the server you are using is creating multiple ASP sessions per visit then it points to an issue with the server you are using. It could be that you are using multiple work process, the servers application pool is recycling, or a number of other issues.

You should also make sure that your site is not using Session.Abandon within an ASP application or the Global.asp file.
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.