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:
|
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
|
|
|