MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need 2 restrict user from logging multiple times

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
brijesh_mca1
Beginner


Joined: 21 Nov 2005
Posts: 19
Topics: 10
Location: India

PostPosted: Tue Nov 20, 2007 6:46 am    Post subject: Need 2 restrict user from logging multiple times Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Arunprasad.K
Beginner


Joined: 18 Jan 2006
Posts: 18
Topics: 5
Location: Chennai, India

PostPosted: Thu Dec 27, 2007 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Dec 27, 2007 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Mickeyd
Beginner


Joined: 02 Jan 2003
Posts: 27
Topics: 0

PostPosted: Wed Jan 09, 2008 5:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Jan 10, 2008 1:57 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group