07-04-2001
By session, I take it you mean a normal login session through the likes of ssh or telnet?...
Luckily this can all be done through environment variables... For example:
To kill the session after 15 minutes idle...
For CSH and TCSH:
# set auto_logout=15
For BASH:
# set TMOUT=900
These wait for N secs/mins after issuing the primary prompt before terminating the session.
Put those in your .cshrc, .bashrc or /etc/profile
Hope that helps...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm looking for some help, please!
I'm trying to kill any idle user processes over 40 Minutes.
I have tried putting TMOUT=2400
within the users .profile
However this does not seem to be working.
We run aix 4.3.3
with ORACLE 7.3
The above works o.k. when the user is only within the... (3 Replies)
Discussion started by: annette
3 Replies
2. Shell Programming and Scripting
I need a script that will look for idle users and kill there proc. (7 Replies)
Discussion started by: jdel80
7 Replies
3. Shell Programming and Scripting
I wrote a script to kill users idle more than 1/2 hour, ignoring those in an exception list. Here is the script as it is now:
#! /usr/bin/awk -f
BEGIN {
system("who -u | sort +5 > /tmp/loginfile");
system("echo User Sessions Killed > /tmp/killedlogins");
... (2 Replies)
Discussion started by: PapaBear
2 Replies
4. UNIX for Dummies Questions & Answers
Still it is not working.
I had given 200 in putty but still it is expiring within 1 minute. (1 Reply)
Discussion started by: vamshikrishnab
1 Replies
5. Solaris
Hi,
I am accessing a solaris server via client machine.
My problem is that every session is expiring within 1 minute if it kept idle. I am facing problem as i have to enter the credentials around 30 to 40 times per day.
I tried to set the TMOUT variable but it does n't work.
Please help... (7 Replies)
Discussion started by: vamshikrishnab
7 Replies
6. Shell Programming and Scripting
Hello,
I am new to unix scripts and have been experimenting with do-while structure. I have run into a problem.
my script is,
---
while true
do
./redir --lport=55083 --caddr=14.121.119.21 --cport=55083 2>&1 >> /tmp/out.txt
echo "Restarting `date`"
done
---
As you can see, i didnt handle... (3 Replies)
Discussion started by: script_newbie
3 Replies
7. Shell Programming and Scripting
Hi All,I have a problem with my kill idle script.my script is supposed to kill the user sessions which are idle for more than 2 hours.But is is killing the sessions which are idle for less than 2 hrs also.I dont know the exact time after which the script is killing,but it is less than 2 hours i am... (3 Replies)
Discussion started by: prabhu_kumar
3 Replies
8. Solaris
Hi,
i need to kill the idle dt sessions through script, can anyone tell me how to do?
RJS (2 Replies)
Discussion started by: rajasekg
2 Replies
9. HP-UX
Hi,
I have this Unix script that kills a user session. When I run it, my screen goes blank. How do I prevent the blank screen?
Ex: I open 2 Unix sessions. The main PID for my 1st session is 1234. In the second session I issue a "kill -HUP 1234". The first session gets killed but the second... (5 Replies)
Discussion started by: rm-r
5 Replies
LEARN ABOUT DEBIAN
squid3_session
squid_session(8) System Manager's Manual squid_session(8)
NAME
squid_session - Squid session tracking external acl group helper
SYNOPSIS
squid_session [-t idle_timeout] [-b dbpath] [-a]
DESCRIPTION
This helper maintains a concept of sessions by monitoring requests and timing out sessions if no requests have been seen for the idle time-
out timer.
Intended use is for displaying "terms of use" pages, ad popups etc.
-t idletimeout (default 3600)
Specifies the session idle timeout timer.
-b dbpath
Path to persistent database. If not specified the session details will be kept in memory only and all sessions will reset each time
Squid restarts it's helpers (Squid restart or rotation of logs).
-a Active mode. In this mode sessions are started by evaluating an acl with the argument LOGIN, or terminated by the argument LOGOUT.
Without this flag the helper automatically starts the session after the first request.
EXAMPLE
Configuration example using the default automatic mode
external_acl_type session ttl=300 negative_ttl=0 children=1 concurrency=200 %LOGIN /usr/local/squid/libexec/squid_session
acl session external session
http_access deny !session
deny_info http://your.server/bannerpage?url=%s session
Then set up http://your.server/bannerpage to display a session startup page and then redirect the user back to the requested URL given in
the url query parameter.
AUTHOR
This helper and documentation was written by Henrik Nordstrom <henrik@henriknordstrom.net>
QUESTIONS
Any questions on usage can be sent to Squid Users <squid-users@squid-cache.org>.
REPORTING BUGS
Report bugs or bug-fixes to Squid Bugs <squid-bugs@squid-cache.org> or ideas for new improvements to Squid Developers <squid-dev@squid-
cache.org>
SEE ALSO
squid(8)
Version 1.0 19 March 2006 squid_session(8)