Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

session_cache_expire(3) [php man page]

SESSION_CACHE_EXPIRE(3) 						 1						   SESSION_CACHE_EXPIRE(3)

session_cache_expire - Return current cache expire

SYNOPSIS
int session_cache_expire ([string $new_cache_expire]) DESCRIPTION
session_cache_expire(3) returns the current setting of session.cache_expire. The cache expire is reset to the default value of 180 stored in session.cache_expire at request startup time. Thus, you need to call ses- sion_cache_expire(3) for every request (and before session_start(3) is called). PARAMETERS
o $new_cache_expire - If $new_cache_expire is given, the current cache expire is replaced with $new_cache_expire. Note Setting $new_cache_expire is of value only, if session.cache_limiter is set to a value different from nocache. RETURN VALUES
Returns the current setting of session.cache_expire. The value returned should be read in minutes, defaults to 180. EXAMPLES
Example #1 session_cache_expire(3) example <?php /* set the cache limiter to 'private' */ session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); /* set the cache expire to 30 minutes */ session_cache_expire(30); $cache_expire = session_cache_expire(); /* start the session */ session_start(); echo "The cache limiter is now set to $cache_limiter<br />"; echo "The cached session pages expire after $cache_expire minutes"; ?> SEE ALSO
session.cache_expire, session.cache_limiter, session_cache_limiter(3). PHP Documentation Group SESSION_CACHE_EXPIRE(3)

Check Out this Related Man Page

SESSION_REGENERATE_ID(3)						 1						  SESSION_REGENERATE_ID(3)

session_regenerate_id - Update the current session id with a newly generated one

SYNOPSIS
bool session_regenerate_id ([bool $delete_old_session = false]) DESCRIPTION
session_regenerate_id(3) will replace the current session id with a new one, and keep the current session information. PARAMETERS
o $delete_old_session - Whether to delete the old associated session file or not. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.3.3 | | | | | | | Since then, if session cookies are enabled, use | | | of session_regenerate_id(3) will also submit a | | | new session cookie with the new session id. | | | | | 5.1.0 | | | | | | | Added the $delete_old_session parameter. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 A session_regenerate_id(3) example <?php session_start(); $old_sessionid = session_id(); session_regenerate_id(); $new_sessionid = session_id(); echo "Old Session: $old_sessionid<br />"; echo "New Session: $new_sessionid<br />"; print_r($_SESSION); ?> SEE ALSO
session_id(3), session_start(3), session_name(3). PHP Documentation Group SESSION_REGENERATE_ID(3)
Man Page

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Telnet session does not expire

Dear friends.. Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Discussion started by: deepsteptom
1 Replies

2. UNIX for Dummies Questions & Answers

is it possible to echo 'some text' every 10 minutes on my screen

is it possible to echo 'some text' every 10 minutes on my screen continues , without cron. (1 Reply)
Discussion started by: vkandati
1 Replies

3. Shell Programming and Scripting

unix session

Hi, we have our shell sessions timing out after every 5 minutes , if there is no activity. Is there any way i can keep my session for longer than 5 minutes or untill i end the session. may be any dummy program that runs background and doesn't take up lot of resources or any ideas. ... (6 Replies)
Discussion started by: thomaso
6 Replies

4. SCO

Apparent logoff’s due to inactivity.

I have run across an issue with the last two Dell Poweredge servers I have attempted to deploy. I seems that when a telnet session sits idle for 5 to 30 minutes (seems random) the session is being closed and users are logged off. If the session has user activity there is no problem staying... (0 Replies)
Discussion started by: gadgetman
0 Replies

5. AIX

user session restriction

hi, I am facing a problem from the remote system if i login to my AIX5.3 machine as root (thru telnet) the session does not expire for 2 hours even if the session is kept ideal But whenever i do the same thing from some other user then the session is lost within 10 minutes (if session is kept... (2 Replies)
Discussion started by: pchangba
2 Replies

6. UNIX for Dummies Questions & Answers

hpux telnet session is getting hung after about 15 minutes

(2 Replies)
Discussion started by: mhbd
2 Replies

7. Shell Programming and Scripting

Add minutes in Datetime Variable in Unix

Hi, New to scripting. I have datetime as a String and I need to add some hours/minutes in to that. 21/10/2009 23:00:00 After adding 180 minutes; it will look like this 22/10/2009 02:00:00 Regards, Vikas Mahajan (9 Replies)
Discussion started by: vikas482
9 Replies

8. Shell Programming and Scripting

Convert MS Excel file to Tab limiter file in UNIX

Hi, We have a couple of ms excel files in unix server.We need convert the excel files to files TAB limiter format file with using unix script. Could you please advise on this (2 Replies)
Discussion started by: koti_rama
2 Replies

9. Solaris

user to be never expire ..

Hi All, I have Solaris 9 and there is user created in that server called appuser That user should to be never expire.. can anyone advice me how can I modify that user to be never expire thru the command line without using GUI tool. (1 Reply)
Discussion started by: Mr.AIX
1 Replies

10. Shell Programming and Scripting

Script needs input always

Dear All, I have a sever configured as a Netbackup Master server from where I manually expire tapes. I use the following command to expire a tape: sudo /usr/openv/netbackup/bin/admincmd/bpexpdate -m A00362 -d 0 Once I hit enter , it prompts me for a y or n: sudo... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies