[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

c# user access login detail storing

Posted on 2013-01-18
3
Medium Priority
?
262 Views
Last Modified: 2013-01-23
Hi

I am developing an application with an MDI form, and the first thing the user does is login, so a login form is the first thing they see.

I have created a login script, which checks the database and returns true/false of the details are correct.  Now, I need to store the login details somewhere that is accessible from all forms in the application (on a website I would store them in a session variable) what is the way to do this in c#?

Cheers

CD
0
Comment
Question by:cycledude
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 38792352
A singleton class is probably what you are looking for.

http://en.wikipedia.org/wiki/Singleton_pattern
0
 
LVL 45

Accepted Solution

by:
AndyAinscow earned 2000 total points
ID: 38792354
Also this for some implementations:
http://csharpindepth.com/Articles/General/Singleton.aspx
0
 

Author Closing Comment

by:cycledude
ID: 38811634
thanks andy
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question