Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all!

hi i create an application which is only used in a domain

inside domain every user has different accessibility

and some user has more then one id to use this application

so its mean they have different accessibility with different id

now if user 1 login with id1 and from the application he want

to switch to other id

how can i do this

in short how to switch user with in the application
Posted

1 solution

As per my understanding, when user logged in with id1 and you are sure the same user had id2 so when switched to id2 then logout id1 and authenticate with id2 to that user.
 
Share this answer
 
Comments
kami124 25-Jul-11 1:04am    
ya this is my question how i have to do with in the application
ofcourse the one whih you sujjecting is not something in programming i want to switch user programmically
Parwej Ahamad 25-Jul-11 1:09am    
do you want to know how to login/logout in web aps? is it? please elaborate more more in coding point of view
kami124 25-Jul-11 1:14am    
no, brother here my application is desktop
i know its name space but i dont know how to use it
switch user
using System.Management; // This is needed for manipulating services
using System.Security.Principal;//This is needed for logged-in user name

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