Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a login page with remember me button to remember the user credentials after the application is closed. Is it possible to direct the user directly to the mainwindow, so that the user doesn't have to be directed to the login page every time after closing the application?

What I have tried:

I have a login_load and login button, where both the credentials with authentication is implemented and the remember me feature, which works fine.

The question, if we can skip the login page and direct to mainwindow, when the remember me is checked.

Hope the question makes sense.

The application is in visual studio 2022 .Net
Posted
Updated 15-Dec-22 2:17am
Comments
Richard Deeming 15-Dec-22 9:16am    
Is this a website, or a desktop application?
Member 15862460 15-Dec-22 12:46pm    
It's a windows application

1 solution

Yes, all you have to do is store the login details and the "Remember me" status in your settings file (WinForms) or as a Cookie (Web based).

In the later case, you need to remember the requirements of GDPR and get the user permission to store cookies first.
 
Share this answer
 
Comments
Richard Deeming 15-Dec-22 9:14am    
No, no, no, no!

Storing the user's credentials in a cookie is a terrible idea. I don't know why you'd even suggest that!

For web applications, the browser will offer to store the login credentials securely. Anything else is a breach and a massive fine waiting to happen.

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