![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tar 2GB limit | SLKRR | Filesystems, Disks and Memory | 9 | 12-04-2006 11:19 AM |
| Limit logins to 1 | pheusion | AIX | 0 | 08-11-2006 08:23 AM |
| limit telnet | shaikh.naveed | SCO | 5 | 08-10-2006 09:45 PM |
| sqlplus session being able to see unix variables session within a script | 435 Gavea | Shell Programming and Scripting | 2 | 07-03-2006 07:11 AM |
| Limit command | macdonto | UNIX for Dummies Questions & Answers | 1 | 10-21-2002 12:58 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
session limit in php
Sirs,
How can i set the session.gc_maxlifetime value by php coding. Thanks ArunKumar |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
|
|
||||
|
For info;
The php.net site (and various national mirrors) holds the definitive PHP reference documentation. For example, http://uk2.php.net/manual/en/ref.session.php will give you all the information you need on configuring and handling sessions. Cheers ZB |
|
|||
|
reading that documentation, i found things such as setting a cookie or cache lifetime, but i didn't see anything on setting a session lifetime. i need to expire a session after 5 minutes then redirect to a login page. could i set a cookie expiration and then just check if the cookie is set? i would perfer to do it with session variables. does anyone know how?
|
|
|||
|
Quote:
Adding ini_set('session.gc_maxlifetime', 7200); to the begining of a PHP script will set the session lifetime at the time the script is run (initialization set). You can also change this for the entire PHP server by editing the php.ini file on the servers end. -Sys |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|