 |
|
| View previous topic :: View next topic |
| Author |
Message |
coder Corporal

Joined: 20 May 2003 Posts: 13
|
Posted: Sun May 25, 2003 4:09 am Post subject: |
|
|
well as we all know that the user accounts in php nuke is a cookie based recognition system thats to say wen a user logs on to the system a certain cookie is set to show that this user is on and this cookie is not deleted unless the user logs of the system.. regardless of the simplisty of the system but the cookie that it is using makes some problems such as : ( some users forget to log of the page and wen they r using public computers other users use their account ..) and we cant always make sure that all users loged off ... i got alot of complains about this so is there a way wer this cookie b deleted once the browser is closed ? in this way wen another person opens the same site he or she will need to log on to the system to have the access required ....
Best Regards
Coder ...
|
|
| Back to top |
|
 |
|
|
 |
Humpa President

Joined: 23 Apr 2002 Posts: 3429
|
Posted: Sun May 25, 2003 5:31 am Post subject: |
|
|
in the function docookie in the modules/Your_Account/index.php is this:
setcookie("user","$info",time()+2592000);
You can change the time to something smaller. The time is in seconds (2592000 is 180 days)
Or, to delete the cookie when the browser is closed, just remove the time alltogether:
setcookie("user","$info"); |
|
| Back to top |
|
 |
coder Corporal

Joined: 20 May 2003 Posts: 13
|
Posted: Sun May 25, 2003 11:30 pm Post subject: |
|
|
| Works .. thanx Humpa ... |
|
| Back to top |
|
 |
suksesi Private

Joined: 12 Apr 2004 Posts: 1
|
Posted: Mon Apr 12, 2004 2:51 am Post subject: |
|
|
HI
I have phpnuke 7.0 installed
Session time works fine. thanks.
But to log off immediatly after closing the web i have troubles.
If i remove this code: setcookie("user","$info",time()+2592000);
and try to log in then i see nothing. i see only the blank page.
once i havee bin loged but after my first click i loged out automaticly. |
|
| Back to top |
|
 |
kiltannen Lance Corporal

Joined: 27 Jun 2004 Posts: 7
|
Posted: Mon Aug 02, 2004 4:44 pm Post subject: |
|
|
| Humpa wrote: | Or, to delete the cookie when the browser is closed, just remove the time alltogether:
setcookie("user","$info"); |
This worked just perfectly for me too!
I just thought I'd mention this so that anybody else with the same desire would know it still works exactly the same way in Version 7.3 of phpNuke. And to say thanks to Humpa for giving such a clear and distinct answer on how to cause a logged in session to timeout in less than the default.
kilt |
|
| Back to top |
|
 |
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|