when you said one line while loop i didn't get it. .. can you please elaborate on this..
A standard one liner for keeping sessions alive:
You can fiddle around with the length of the sleep command depending on the timeout interval that you have set.
Hi All,
I've login to Unix using login name guest and I'm working on it,
I need another session to run some script hence tried to login
but password invalid it says here my question is :
Since I'm in working in one session can I set the password without knowing old password? is there any... (1 Reply)
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Hi All,
I have a question regarding recording the unix sessions.
I know the recording can be done using script comman, however i want to create a daily file of unix session. Also when i open multiple sessions how will the script multiple session. Please suggest some solutions also which file... (0 Replies)
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
We recently moved servers to a new data center, and now we're experiencing user sessions timing out after non-activity. We didnt experience this before, or know of any timeout settings that may have been changed.
Any things I can check out on the server? (3 Replies)
Hi - i have an unix application which receives user input and prints certain details. the problem is i am trying to automate it and i don't know how to pass a list of commands to the application using shell script. here documents don't work as well - if i use the here document when i am opening... (3 Replies)
Hi All,
I want to capture all the operations performed in the terminal. So to achieve this I used “script” command. This works as I expected. But this command captures all the standard output which is redirected to terminal. For example if i “tail” a file, even the tail output is getting... (2 Replies)
hi, i am on AIX 5.3. I would like to write scripts that initiate or reattach to a screen session to run some commands either from unix or Universe. Can anyone assist me with a with a wuick primer on this. I can attach or initiate a screen manually and then run the commands but I would like to... (6 Replies)
Discussion started by: dustytina
6 Replies
LEARN ABOUT PHP
session_cache_expire
SESSION_CACHE_EXPIRE(3) 1 SESSION_CACHE_EXPIRE(3)session_cache_expire - Return current cache expireSYNOPSIS
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)