| Author |
Topic Search Topic Options
|
Järnvägsövergång
Newbie
Joined: 28 October 2009
Status: Offline
Points: 12
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Järnvägsövergång
Newbie
Joined: 28 October 2009
Status: Offline
Points: 12
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2010 at 10:04am |
|
That can happen with some browsers.
|
|
|
 |
Hobanart
Groupie
Joined: 02 August 2004
Location: United States
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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"), "/")))
|
|
|
 |
Järnvägsövergång
Newbie
Joined: 28 October 2009
Status: Offline
Points: 12
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
Hobanart
Groupie
Joined: 02 August 2004
Location: United States
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
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...
|
 |