Session time out


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Session time out
# 1  
Old 07-26-2005
Session time out

Hi,
We have a generic login id :- ship1 .
There can be any number of sessions for this login ID. I'm working on a way to log off idle sessions ( not logins) . I searched the forum and found
TMOUT. Is it at login level or session level ? ( looks like it is at login level)
But I added it to .profile
********
TMOUT=100
export TMOUT
**********
Then I tried logging as ship1 , but it did not log out the user after 100 seconds..
Even if it works, will it work at session level ? I don't want to logoff sessions which are active . Is there any unix command to find out session idle time, so that I could use that in my application program .( this is second option if we can't do it at profile level)

We are using Solaris 2.8 .

Any ideas ??

Thanks..
# 2  
Old 07-26-2005
Code:
TMOUT=100
readonly TMOUT
export TMOUT

Is how to do it for a login with /bin/sh or /bin/ksh. For Solaris, I do not know if it works this way.

You have to create a readonly environment variable - I don't know the csh or tcsh setenv command to do so.
# 3  
Old 07-27-2005
I tried adding that in the .profile..but it did not work..
Is there any way to auto logout the session if it exceeds certain time OR to know how much time the session was idle ?

Thanks..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Login and logout time of a session

Hi, How can I find out the login and logout time of the old UNIX session/user?. (2 Replies)
Discussion started by: sharif
2 Replies

2. UNIX for Advanced & Expert Users

Run only 3 sqlplus session at a time

Below code runs n number of session at a time when called. I want to restrict it to run only for 3 sqlplus at a time. Is there a way to do the same. for name in `cat abc.txt` do (sqlplus -s usert/password@host <<-EOF>> error.txt SET LINESIZE 1000 select '$name',... (4 Replies)
Discussion started by: ATWC
4 Replies

3. Solaris

Difference between the desktop session and console session

what is the difference between desktop session and console session in solaris as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies

4. Shell Programming and Scripting

Determining if session is a login session

Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies

5. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

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)
Discussion started by: durgaprasadr13
0 Replies

6. Shell Programming and Scripting

Hiding Directories on a Session by Session basis

Hi, Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting. Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies

7. Shell Programming and Scripting

sqlplus session being able to see unix variables session within a script

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)
Discussion started by: 435 Gavea
2 Replies

8. UNIX for Dummies Questions & Answers

one time automated ftp session

How can an automated script be setup to run at a later time in the day. cron runs recurring tasks. I am interested in a one time process. I want to back up a number of files whenever I make changes to an application and ftp for backup purposes. The script to automate the zipping of files has... (1 Reply)
Discussion started by: msmkeml
1 Replies

9. UNIX for Dummies Questions & Answers

setting session time

Please lemme know how & where to set the session time for ftp connection in Wu-ftp . Regards Gambhi. (5 Replies)
Discussion started by: gambhi_s
5 Replies
Login or Register to Ask a Question