views:

285

answers:

1

Hello I am creating a Windows application (WPF) that is going to be running in few stations accessing 1 database.

I already implemented a login form with a login system thru My.User.CurrentPrincipal. Now, I want to implement a "Remember me on this computer" check box in the login form, where should I store the value?

Should it be a cookie? a .settings value? or what good other suggestion do you have.

Update
Also what data (i.e. what value) shoud I store, I want it to be secure, that users should not be able to copy the values etc.

Thanks in advance!

+1  A: 

I think you would probably want to store in the registry and i dont think u have cookies in desktop apps.

Sabeen Malik
Can you post some resources?Do you think it's a good idea?
Shimmy
You can also use the local application data directory.
Joey
1) What values should I store?2) Consider putting it in your question body.
Shimmy
Look up registry manipulation in ur respective language in google and you will find tonnes of examples. As for what values , i guess you can encrypt and store the username and password.
Sabeen Malik