Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have tried a lot, but not able to find a perfect solution for same.

I am wokring on a WPF Desktop application,

Username, Database name ,server name and password.. those information user entered for successful access/login into the system. I want to store those information in some memory and reuse it after session/application end.

like in gmail.com, we don't need to enter our email id to access it. (It by default available, if we used earlier).

Most relevant solution - http://www.dotnetfunda.com/articles/show/955/using-isolatedstoragefile-to-store-data-in-wpf-application-class-event

I have tried to use list<string> to store data and access, but not able to do it.

Many thanks in advance. (this is my first time to ask any question online)
Posted
Updated 2-Jun-15 5:42am
v2
Comments
[no name] 2-Jun-15 10:34am    
Write the data to the registry, or to a file or any other media you choose.
Sergey Alexandrovich Kryukov 2-Jun-15 10:45am    
First of all, this is the utterly bad idea, to write anything to the registry...
—SA
[no name] 2-Jun-15 10:49am    
In your opinion. I did say or anything else he chose.
Dave Kreskowiak 2-Jun-15 11:10am    
Instead of writing login credentials somewhere, the site should return a token used to identify the user/session. The client can then store the token and send that to the website for authentication instead of credentials.
Kornfeld Eliyahu Peter 2-Jun-15 15:19pm    
It's about a WPF (desktop) application...

1 solution

Most irrelevant solutions received. Please refer the link I shared and tell me how to fetch data from app.xaml.cs to window1.xaml.cs's controls.
 
Share this answer
 

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