FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Session problems when switching users
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Session problems when switching users [message #22598] Tue, 08 February 2005 04:45 Go to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
2.6.9

I'm have frequent issues with needing to login twice. It only appears to happen when I switch between a regular user login and root (admin) login. It will accept the login but after hitting 'Home' I'm back to a no user logged in state.
Re: Session problems when switching users [message #22600 is a reply to message #22598] Tue, 08 February 2005 04:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Sounds like your browser/proxy is caching the page.

FUDforum Core Developer
Re: Session problems when switching users [message #22602 is a reply to message #22600] Tue, 08 February 2005 05:14 Go to previous messageGo to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
Ilia wrote on Mon, 07 February 2005 23:46

Sounds like your browser/proxy is caching the page.



Can you explain what the COOKIE_PATH is and what it should point
to? Is it a filesystem path or a logical concept? Or is it relative to document root? GLOBALS_HELP was not helpful.
Re: Session problems when switching users [message #22603 is a reply to message #22602] Tue, 08 February 2005 05:36 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
See http://fudforum.org/doc/d/html/admin.global_settings_manager.html#admin.glo bal_settings_manager.options:

"The path of cookie used by the forum. Outside of this path the cookie will not be accessible.

By default the cookie path is the path to the forum. For example, if your forum URL is 'http://mydomain.com/forum/' the cookie path will be '/forum/'. If you wanted your entire site to be able to access the forum's cookies, change the value of this option to '/'."

Best regards.

Frank
Re: Session problems when switching users [message #22604 is a reply to message #22603] Tue, 08 February 2005 05:40 Go to previous messageGo to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
naudefj wrote on Tue, 08 February 2005 00:36

See http://fudforum.org/doc/d/html/admin.global_settings_manager.html#admin.glo bal_settings_manager.options:

"The path of cookie used by the forum. Outside of this path the cookie will not be accessible.

By default the cookie path is the path to the forum. For example, if your forum URL is 'http://mydomain.com/forum/' the cookie path will be '/forum/'. If you wanted your entire site to be able to access the forum's cookies, change the value of this option to '/'."

Best regards.

Frank




So if my site is mydomain.com/forum and the cookie path is /html/forum that might be a problem? I wander of this would be part of the problems I'm having. Thanks.
Re: Session problems when switching users [message #22605 is a reply to message #22604] Tue, 08 February 2005 05:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Indeed. Try to fix it and let us know if it solves your problem.

Best regards.

Frank
Re: Session problems when switching users [message #22606 is a reply to message #22605] Tue, 08 February 2005 08:07 Go to previous messageGo to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
naudefj wrote on Tue, 08 February 2005 00:46

Indeed. Try to fix it and let us know if it solves your problem.

Best regards.

Frank



I updated my COOKIE PATH but I am still experiencing the problem with being unable to login useing the admlogin screen. I disabled my forum via admin control panel. I entered went to the forum root and clicking the admin entry. It just looped back to the 'temp down' page.

Re: Session problems when switching users [message #22613 is a reply to message #22606] Tue, 08 February 2005 15:09 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Check what your browser sends in response (does it send the cookie back?). It seems to me that cookie is not being set properly.

Also make sure GLOBALS.php inside forum's main dir and adm/ dir are symlinks to the primary GLOBALS.php inside the include/ directory.


FUDforum Core Developer
Re: Session problems when switching users [message #22614 is a reply to message #22613] Tue, 08 February 2005 15:28 Go to previous messageGo to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
Ilia wrote on Tue, 08 February 2005 10:09

Check what your browser sends in response (does it send the cookie back?). It seems to me that cookie is not being set properly.

Also make sure GLOBALS.php inside forum's main dir and adm/ dir are symlinks to the primary GLOBALS.php inside the include/ directory.



How do I check if the cookie is working? Here is a capture of the HTTP session:

GET /forums/adm/admloginuser.php HTTP/1.1
Host: www.xyz.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q =0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: fud_session_1106952848=da226561e36bff5a2dc6b007d3147bfd

HTTP/1.1 200 OK
Date: Tue, 08 Feb 2005 15:22:26 GMT
Server: Apache
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.2
P3P: CP="ALL CUR OUR IND UNI ONL INT CNT STA"
Expires: Mon, 21 Jan 1980 06:01:01 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: fud_session_1106952848=da226561e36bff5a2dc6b007d3147bfd; path=/forums/; domain=www.xyz.org
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

25
<html>
<h2>Login Into the Forum</h2>

2e
<form method="post" action="admloginuser.php">
8f
<input type="hidden" name="S" value="da226561e36bff5a2dc6b007d3147bfd"><input type="hidden" name="SQ" value="de8d3796cc096405c8b26ec63667b9c2">
6f
<table border=0 cellspacing=0 cellpadding=3>
<tr>
.<td>Login:</td>
.<td><input type="text" name="login" value="
e6
" size=25></td>
</tr>
<tr>
.<td>Password:</td>
.<td><input type="password" name="passwd" size=25></td>
</tr>

<tr>
.<td align=right colspan=2><input type="submit" name="btn_login" value="Login"></td>
</tr>
</table>
</form>
</html>
0
Re: Session problems when switching users [message #22616 is a reply to message #22614] Tue, 08 February 2005 15:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It looks like the cookie is being sent and recieved, judging from the output, Although I'd change the cookie domain from www.xyz.org to .xyz.org.

Try to clear all cookies related to the site in your browser and then restart it. Once that is done try to re-login to the forum.


FUDforum Core Developer
Re: Session problems when switching users [message #22617 is a reply to message #22616] Tue, 08 February 2005 15:59 Go to previous messageGo to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
Ilia wrote on Tue, 08 February 2005 10:41

It looks like the cookie is being sent and recieved, judging from the output, Although I'd change the cookie domain from www.xyz.org to .xyz.org.

Try to clear all cookies related to the site in your browser and then restart it. Once that is done try to re-login to the forum.



Nope. I had already cleared ALL cookies from Firefox before I posted the above. I changed the domain to .xyz.org and cleared cache still no go.

Trying to login via the admlogin.php keeps looping. I was comparing my xyz.com cookie with fudforum.org cookie. I notice that your cookie expires in 7 days whereas mine the service is saying expires at end of session. Could there be a problem in this area? Where do i adjust this? Cookie timeout is 604800 and session timeout 3600.

I also ensured that GLOBALS.php was a symlink.
Re: Session problems when switching users [message #22618 is a reply to message #22617] Tue, 08 February 2005 16:09 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I think you have enabled "Use Session Cookies" setting inside your forum configuration, try disabling it.

FUDforum Core Developer
Re: Session problems when switching users [message #22619 is a reply to message #22618] Tue, 08 February 2005 16:22 Go to previous messageGo to next message
krbvroc1 is currently offline  krbvroc1   United States
Messages: 31
Registered: February 2005
Karma: 0
Member
Ilia wrote on Tue, 08 February 2005 11:09

I think you have enabled "Use Session Cookies" setting inside your forum configuration, try disabling it.


Tried that and it doesn't change the login problem. Are we sure that isn't a bug in admlogin somehow? Here is what happened.
I disabled the forum. When I get the 'adminitrators can login here' I enter valid info and it just loops back to the same login. Next, I went to GLOBALS.PHP and toggle the bit on OPT_1 to enable the forum. I hit refresh on my browser. Not only am at I the forum home page but I am properly logged in. It seems that with admlogin I am being logged in it is just not going anywhere.
Re: Session problems when switching users [message #22627 is a reply to message #22619] Tue, 08 February 2005 17:22 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I suppose it's possible, but I use admin login form fairly regularly and have not encountered the problem you've reported.
I'll try to replicate the problem using the steps you've described on my
dev forum tonight.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: forum search
Next Topic: eGroupWare 1.0.0.006 Fudforum Language German
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 11 23:43:16 GMT 2024

Total time taken to generate the page: 0.02528 seconds