Nuke Toolbar

          
Quick Links 
 [Home Page ][ Category Listings ][ Forum Listings][ Forum FAQs]
[ HomeDNS - Domains ]  [ Nuke Resources ]  [ Nuke Skins and Themes ]  [ Nuke Sites Link Directory ]
[ LearningLinux.com ]  [ Nuke Fixes ]
[ NukeZone Hosting ]  [ Domain Name Database ]
Nuke Forums Forum Index

Nuke Sites Link Directory


user Log off !

 
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 5.x Discussions
View previous topic :: View next topic  
Author Message
coder
Corporal
Corporal


Joined: 20 May 2003
Posts: 13


PostPosted: Sun May 25, 2003 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Humpa
President
President


Joined: 23 Apr 2002
Posts: 3429


PostPosted: Sun May 25, 2003 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
coder
Corporal
Corporal


Joined: 20 May 2003
Posts: 13


PostPosted: Sun May 25, 2003 11:30 pm    Post subject: Reply with quote

Works .. thanx Humpa ...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
suksesi
Private
Private


Joined: 12 Apr 2004
Posts: 1


PostPosted: Mon Apr 12, 2004 2:51 am    Post subject: Reply with quote

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
View user's profile Send private message
kiltannen
Lance Corporal
Lance Corporal


Joined: 27 Jun 2004
Posts: 7


PostPosted: Mon Aug 02, 2004 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 5.x Discussions All times are GMT - 8 Hours
Page 1 of 1

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




Forum Options
Main Menu
index.phpForums Index
    - Collaped View
    + Expanded View
FAQFAQ
SearchSearch
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Visitor Options
 
Subscribe
Unsubscribe


Keep informed of updates, bug fixes, software releases, news and more!
Installation or Upgrade Services for phpNuke or PostNuke? Require site maintenance, addons, modules or custom themes? Send private message or e-mail for rates and availablity.

Quick Links
  Domain Names
  Firewall Forums
  Joke Crazy
  Learning Linux
  Find your IP Fast!
  Purchase WinRAR

Trusted Nuke Sites
  NukeZone Hosting
  CMS Focus
  NukeFixes.com
  NukeResources.com
  NukeSkins.com
  NukeSites.com
  PHPNuke.org

Sponsor Links


NukeZone Hosting