Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Users frequently logged out
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Users frequently logged out

 Post Reply Post Reply
Author
Järnvägsövergång View Drop Down
Newbie
Newbie


Joined: 28 October 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Järnvägsövergång Quote  Post ReplyReply Direct Link To This Post Topic: Users frequently logged out
    Posted: 08 January 2010 at 1:44pm
After upgrading to 9.65 some users are getting logged out every 1-20 minutes. Choosing "Yes" or "No" to the question "Keep me Logged-in on this computer" at login makes no difference. Deleting cookies doesn't seem to help, and as far as I can see in the database everything looks OK. Any ideas about what could be wrong, and why this happens only to some the users?
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: 08 January 2010 at 2:57pm
Try editing the file includes/setup_options_inc.asp and change it so that the path is included in the cookie and not just set to website route.
Back to Top
Järnvägsövergång View Drop Down
Newbie
Newbie


Joined: 28 October 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Järnvägsövergång Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2010 at 4:26pm
Thanks, that explains a lot. Before upgrading the cookie path was "/forum/", after upgrading it is "/".

I suppose that means that the webbrowser keeps using the wrong set of cookies and when the UID doesn't match the usercode in the database, the user gets logged out?
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: 11 January 2010 at 10:04am
That can happen with some browsers.
Back to Top
Hobanart View Drop Down
Groupie
Groupie
Avatar

Joined: 02 August 2004
Location: United States
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobanart Quote  Post ReplyReply Direct Link To This Post Posted: 04 March 2010 at 10:09pm
I am having the same problem. What exacly should I enter for the cookie path. And do I need to delete the ' in front of the statement?
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: 05 March 2010 at 9:08am
Try setting the cookie path to the root of your website by uncommenting (remove the quote mark) from in front of:-

'strCookiePath = "/"

Then comment the lin below:-

'strCookiePath = LCase(Left(Request.ServerVariables("HTTP_URL"), InstrRev(Request.ServerVariables("HTTP_URL"), "/")))
Back to Top
Järnvägsövergång View Drop Down
Newbie
Newbie


Joined: 28 October 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Järnvägsövergång Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2010 at 9:21am
Also note that if your cookiepath was for example "/forum/" before, changing it to "/" will not fix the problem. The user will still have the old "/forum/"-cookie hanging around for another year. If your forum is on www.domain.com/forum/ the browser will use "/forum/"-cookie instead of the more generic "/"-cookie.
Back to Top
Hobanart View Drop Down
Groupie
Groupie
Avatar

Joined: 02 August 2004
Location: United States
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobanart Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2010 at 2:22pm
Well, before I read your reply, I was troubleshooting it on my own. I remembered reading something about lower case being a problem, (I have IE8), so I deleted the LCase from the line of code. That seems to have solved the problem...
Back to Top
 Post Reply Post Reply

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.