how to save credentials permanently in c# windows form application

439 Views Asked by At

I am basically a web developer , but I started to work on a chat system , I have to make different users , and I have to save their credentials permanently or for long period even when they close the application , in web apps we use session and caches for it but here I researched there is no session concept , I want to know how you people do this when you want to save users details permanently for a long time and don't want login over n over again , I want to do it just like Skype

1

There are 1 best solutions below

0
pm100 On

choices

writing to a file in c# is easy:

  • File.WriteAllText
  • File.ReadAllText

Easiest way to read from and write to files