 |
|
| View previous topic :: View next topic |
| Author |
Message |
jaypeg Staff Sergeant

Joined: 31 Jan 2003 Posts: 32
|
Posted: Fri Feb 28, 2003 1:13 am Post subject: |
|
|
| where do I set the expire time on the cookies, like two hours both for admin and regged?? |
|
| Back to top |
|
 |
|
|
 |
downsize Lieutenant Colonel


Joined: 10 May 2002 Posts: 496 Location: cali
|
Posted: Fri Feb 28, 2003 1:50 am Post subject: |
|
|
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 |
|
 |
Humpa President

Joined: 23 Apr 2002 Posts: 3429
|
Posted: Fri Feb 28, 2003 7:40 am Post subject: |
|
|
... and for admin, look in the auth.php and edit this line:
setcookie("admin","$admin",time()+2592000); |
|
| Back to top |
|
 |
jaypeg Staff Sergeant

Joined: 31 Jan 2003 Posts: 32
|
Posted: Fri Feb 28, 2003 12:08 pm Post subject: |
|
|
Thanks  |
|
| Back to top |
|
 |
chris President


Joined: 06 Nov 2002 Posts: 1047 Location: Outer Space
|
|
| Back to top |
|
 |
downsize Lieutenant Colonel


Joined: 10 May 2002 Posts: 496 Location: cali
|
Posted: Fri Feb 28, 2003 4:35 pm Post subject: |
|
|
oh yea, did not even catch the admin cookie request.. sorry about that (nice catch humpa)
later,
downsize |
|
| Back to top |
|
 |
moleman Private

Joined: 03 Aug 2004 Posts: 1
|
Posted: Tue Aug 03, 2004 3:20 pm Post subject: |
|
|
| To edit admins cookie expiration time you have to change the file called "html/auth.php" not "html/includes/auth.php" |
|
| Back to top |
|
 |
jsin666 Private

Joined: 13 Nov 2006 Posts: 2
|
Posted: Mon Nov 13, 2006 11:47 am Post subject: |
|
|
| 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 |
|
 |
beaben Private

Joined: 24 Oct 2009 Posts: 1
|
Posted: Sat Oct 24, 2009 2:33 am Post subject: |
|
|
| 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 |
|
 |
|
|
 |
|
|
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
|
|