Print Page | Close Window

Users frequently logged out

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28216
Printed Date: 02 April 2026 at 12:53am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Users frequently logged out
Posted By: Järnvägsövergång
Subject: Users frequently logged out
Date 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?



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Järnvägsövergång
Date 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?


Posted By: WebWiz-Bruce
Date Posted: 11 January 2010 at 10:04am
That can happen with some browsers.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Hobanart
Date 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?


Posted By: WebWiz-Bruce
Date 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"), "/")))


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Järnvägsövergång
Date 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.


Posted By: Hobanart
Date 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...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net