| 
 | 
  Hans Jørgen Guldbrand - 2005-03-31 21:06:30  
When I hit the logout link I get the login page like when I contact the page at first, that’s OK, but if I then try to contact the first protected page it starts with a "Hello" to the user I just tried to log out. Even if I close the particular Firefox browser and start a new browser an type in the address for the protected page I get a "Hello" to the old user instead of the login page. 
  
  
  Olaf Lederer - 2005-03-31 21:26:32 -  In reply to message 1 from Hans Jørgen Guldbrand 
Hallo Hans, 
 
I think it's about the cookie... 
 
Maybe you have to check the session configuration of your remote server. 
 
Try this first: remove all cookies (made by the class) and login / logout several times without the save login function. 
  
  Hans Jørgen Guldbrand - 2005-04-01 07:03:39 -  In reply to message 2 from Olaf Lederer 
I do not use the "Remember login" function and I can’t find any cookies, so unfortunately I thing it is something about the session handling. 
  
  Olaf Lederer - 2005-04-01 07:52:26 -  In reply to message 3 from Hans Jørgen Guldbrand 
I checked it again, but everthing works like accepted....What kind of browser do you use? 
 
I use this (local )session configuration: 
 
session.auto_start	Off	Off 
session.bug_compat_42	Off	Off 
session.bug_compat_warn	On	On 
session.cache_expire	180	180 
session.cache_limiter	nocache	nocache 
session.cookie_domain	no value	no value 
session.cookie_lifetime	0	0 
session.cookie_path	/	/ 
session.cookie_secure	Off	Off 
session.entropy_file	no value	no value 
session.entropy_length	0	0 
session.gc_divisor	1000	1000 
session.gc_maxlifetime	1440	1440 
session.gc_probability	1	1 
session.name	PHPSESSID	PHPSESSID 
session.referer_check	no value	no value 
session.save_handler	files	files 
session.save_path	c:\php\tmp	c:\php\tmp 
session.serialize_handler	php	php 
session.use_cookies	On	On 
session.use_only_cookies	Off	Off 
session.use_trans_sid	Off	Off 
  
  Hans Jørgen Guldbrand - 2005-04-01 21:24:17 -  In reply to message 4 from Olaf Lederer 
I normally use Firefox or else MSE6 if necessary. My homepage I hosted on a Linux machine with PHP Ver. 4.3.10 an I checked the session settings and found the following deferens : 
 
session.bug_compat_42	on on 
session.gc_divisor	100 100 
session.save_path 	/tmp /tmp 
session.use_trans_sid	on on 
 
maybe the last one is a problem. 
I left the browser open on a logged in page  this morning and it has timed out when I pushed the reload button, that’s perfect. 
I have done some more tests an found that if there is an open Firefox browser it doesn’t matter if I close the one with the protected page  (after pushing the log out and returning to the log in page) and then open a new Firefox browser again then it is possible the open the protected page without logging in. If I only use one Firefox browser it is not possible to access the protected page without logging in after closing and opening a browser, but still if I don’t close the browser but just push the logout button and get directed to the login page it is possible to open the protected page and get the welcome greeting to the user just logged out. 
If I use MSE6 I dos not matter if I had an extra browser open, if first the browser is closed it is not longer possible to open the protected page, but still after pushing the logout button it is possible to open the protected page without logging in, as the user is not logged out at all. 
 
  
  John - 2005-04-03 16:33:53 -  In reply to message 5 from Hans Jørgen Guldbrand 
I cant get the script to work :/ Im a php noob so yea. here is what the problem im getting is: Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/teepefam/public_html/classes/access_user/access_user_class.php on line 89 
Here is line 89: if (mysql_result($result, 0, "test") == 1) { 
I have no clue what im doing wrong Please Help me :) 
  
  Olaf Lederer - 2005-04-03 18:09:35 -  In reply to message 6 from John 
Hallo, I think your database configuration is not OK, try to register as a new user and check the database. 
 
s6! 
  
  Olaf Lederer - 2005-04-03 18:23:09 -  In reply to message 5 from Hans Jørgen Guldbrand 
Hallo Hans, 
 
Is it possible to you to test the application (as is) on a different server? 
 
There are many users of the class without any (big) problems. 
 
gr. Olaf 
  
  John - 2005-04-03 18:23:26 -  In reply to message 7 from Olaf Lederer 
sorry i probably should have put that it happens when i try to register a new user. Should i delete my database and reinstall it ? 
 
  
  John - 2005-04-03 18:25:34 -  In reply to message 9 from John 
  
   |