Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i have a window application in 3.5 and i want to add session out functionality in it
give me any suggestion.
Posted

As the concept of session, in contrast to Web applications working around the limitations of HTTP, is completely redundant, the session out functionality makes no sense. Whole application run-time can be considered as one session.

If your idea was different, please explain. But please tell us: are you coming from Web application development?

—SA
 
Share this answer
 
There is no session functionality in windows application. If you want to use the sign out functionality follow the below steps.

1) When you click the sign out button, close the current form(may be MDI)
2) Then show the login screen. Thats all.
this.Hide();
LoginForm f = new LoginForm();
f.Show();

Don't get confuse with session. Session is only is web application.

Read about session here[^].
 
Share this answer
 
v2

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