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


cookie expire time

 
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 6.x Discussions
View previous topic :: View next topic  
Author Message
jaypeg
Staff Sergeant
Staff Sergeant


Joined: 31 Jan 2003
Posts: 32


PostPosted: Fri Feb 28, 2003 1:13 am    Post subject: Reply with quote

where do I set the expire time on the cookies, like two hours both for admin and regged??
Back to top
View user's profile Send private message
downsize
Lieutenant Colonel
Lieutenant Colonel


Joined: 10 May 2002
Posts: 496
Location: cali

PostPosted: Fri Feb 28, 2003 1:50 am    Post subject: Reply with quote

in your_account module .. do a search in the index.php for 'docookie' and then find the 'setcookie()' function.

change it to read something like:
Code:

setcookie("user","$info",time()+7200);

it is in seconds, so for 2 hours you are looking at 7200 seconds

later,
downsize
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Humpa
President
President


Joined: 23 Apr 2002
Posts: 3429


PostPosted: Fri Feb 28, 2003 7:40 am    Post subject: Reply with quote

... and for admin, look in the auth.php and edit this line:
setcookie("admin","$admin",time()+2592000);
Back to top
View user's profile Send private message
jaypeg
Staff Sergeant
Staff Sergeant


Joined: 31 Jan 2003
Posts: 32


PostPosted: Fri Feb 28, 2003 12:08 pm    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
chris
President
President


Joined: 06 Nov 2002
Posts: 1047
Location: Outer Space

PostPosted: Fri Feb 28, 2003 1:05 pm    Post subject: Reply with quote

See also this discussion on PHP-Nuke cookies for a securiry-oriented approach.

Regards

Chris
Back to top
View user's profile Send private message Send e-mail Visit poster's website
downsize
Lieutenant Colonel
Lieutenant Colonel


Joined: 10 May 2002
Posts: 496
Location: cali

PostPosted: Fri Feb 28, 2003 4:35 pm    Post subject: Reply with quote

oh yea, did not even catch the admin cookie request.. sorry about that (nice catch humpa)

later,
downsize
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
moleman
Private
Private


Joined: 03 Aug 2004
Posts: 1


PostPosted: Tue Aug 03, 2004 3:20 pm    Post subject: Reply with quote

To edit admins cookie expiration time you have to change the file called "html/auth.php" not "html/includes/auth.php"
Back to top
View user's profile Send private message
jsin666
Private
Private


Joined: 13 Nov 2006
Posts: 2


PostPosted: Mon Nov 13, 2006 11:47 am    Post subject: Reply with quote

I Believe in version 7.9 the admin cookie expiration time is located in the admin.php file located in the root directory.
Back to top
View user's profile Send private message
beaben
Private
Private


Joined: 24 Oct 2009
Posts: 1


PostPosted: Sat Oct 24, 2009 2:33 am    Post subject: Reply with quote

How can i set cookies expire time for my 70-620 practice exam web pages. But i don't want to set it for 70-236 practice exam web page. Any idea how can i do this?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 6.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