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_NAME(3) 							 1							   SESSION_NAME(3)

session_name - Get and/or set the current session name

SYNOPSIS
string session_name ([string $name]) DESCRIPTION
session_name(3) returns the name of the current session. If $name is given, session_name(3) will update the session name and return the old session name. The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name(3) for every request (and before session_start(3) or session_register(3) are called). PARAMETERS
o $name - The session name references the name of the session, which is used in cookies and URLs (e.g. PHPSESSID). It should contain only alphanumeric characters; it should be short and descriptive (i.e. for users with enabled cookie warnings). If $name is specified, the name of the current session is changed to its value. Warning The session name can't consist of digits only, at least one letter must be present. Otherwise a new session id is generated every time. RETURN VALUES
Returns the name of the current session. If $name is given and function updates the session name, name of the old session is returned. EXAMPLES
Example #1 session_name(3) example <?php /* set the session name to WebsiteID */ $previous_name = session_name("WebsiteID"); echo "The previous session name was $previous_name<br />"; ?> SEE ALSO
The session.name configuration directive . PHP Documentation Group SESSION_NAME(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