Session problems when switching users [message #22598] |
Tue, 08 February 2005 04:45 |
krbvroc1
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 #22613 is a reply to message #22606] |
Tue, 08 February 2005 15:09 |
Ilia
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 |
krbvroc1
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 |
Ilia
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 #22627 is a reply to message #22619] |
Tue, 08 February 2005 17:22 |
Ilia
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
|
|
|