View previous topic :: View next topic |
Author |
Message |
brijesh_mca1 Beginner

Joined: 21 Nov 2005 Posts: 19 Topics: 10 Location: India
|
Posted: Tue Nov 20, 2007 6:46 am Post subject: Need 2 restrict user from logging multiple times |
|
|
Need the ability to restrict user(defined in my application) from having multiple concurrent logons on different terminals. The User should have only one logon on any workstation and any point of time.Is there any way to implement this using CICS functionality.
one way that came in my mind is to store application defined user in file while logging in , and delete that while logging off. How ever if user does not logoff properly then that ID will be stuck untill file is manually edited.Please suggest how to tackle this.
Thanks in advance. _________________ Brijesh(India Is Great) |
|
Back to top |
|
 |
Arunprasad.K Beginner

Joined: 18 Jan 2006 Posts: 18 Topics: 5 Location: Chennai, India
|
Posted: Thu Dec 27, 2007 4:54 am Post subject: |
|
|
brijesh_mca1,
Here is a probable solution.
Code: |
1. You should have a file wherein all the USERID are present. Have a filler in that file to set the sign-on. If the user is signed in then this is set to 'Y' else this will be set to 'N'.
2. While logon check this indicator for 'Y'.
3. In the evening batch trail (once the online is down) use a job to update this indicator with 'N'.
|
I hope this would be a better solution.
Arun. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Dec 27, 2007 12:16 pm Post subject: |
|
|
File content is a very poor resource to depend on. If the user does not log off cleanly, they can not use the system again until the file is cleaned up. Maybe a day, maybe a week, maybe never. Find some other resource to check, preferably one that automatically disappears when the user logs off. Normally outside of CICS this is done via an ENQ but I don't know how ENQs and logins relate in CICS. Certainly the ENQ (among other things) is what is used in TSO to prevent multiple logins. Or there may be a way to simply see who else is logged in and deny the login programatically. _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
 |
Mickeyd Beginner
Joined: 02 Jan 2003 Posts: 27 Topics: 0
|
Posted: Wed Jan 09, 2008 5:51 pm Post subject: |
|
|
You could issue a INQUIRE TERMINAL command. loop thru looking for the USERID
and the Transaction id. If you do not found a match then continue with you program otherwise display a message and terminate. |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Jan 10, 2008 1:57 am Post subject: |
|
|
I seem to recall that you can setup RACF that it only allows a single sign on. Can not verify it now. |
|
Back to top |
|
 |
|
|