Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my project i have two user,one is Admin and another Operator.
i want to know which user is currently logged in,so i can hide some of form controls.

is it possible in windows platform?
can any one help me.
Posted
Updated 7-May-13 16:55pm
v2
Comments
Sergey Alexandrovich Kryukov 6-May-13 23:11pm    
It sounds so trivial. What's the problem? Did you try to design it? All you need is some thinking and common sense. And basic knowledge of programming.
—SA
Rockstar_ 6-May-13 23:57pm    
In database , create a column named login_status, and when the operator logged in , set the flag to 1 or else 0. based on the flag value, u can enable or disable the controls.
Aydin Homay 7-May-13 1:35am    
Please tell me are you have a relational database or no? and you are in windows platform or web?
Vishal_Prince 7-May-13 22:54pm    
there is no relationships in database,and its windows platform

1 solution

Yes, it is possible. Design it and you will get it.

—SA
 
Share this answer
 
Comments
Vishal_Prince 6-May-13 23:14pm    
but how can i know which user is logged in?
Sergey Alexandrovich Kryukov 7-May-13 1:29am    
If depends on your decision. Do you have data other than authentication data? If you have enough justification to have the database, have it. If you only need authentication data, just a file would do.

By the way, do you understand this basic and most important thing: you should not store passwords anywhere? Never store passwords. Do you know how?

How should I understand this: "and you are in windows platform or web?" Me? How about your?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900