[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

ASP.net(VB.net) SQL Keep user logged in

Hi

I have an ASP.net website that allows a user to log in by entering a username and password.
I want to allow a user to stay logged in. How do I recognize a user? Do I use some kind of cookie?
What VB.net code would I use?

Thanks
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:
If you're using forms based login use the setAuthCookie method:
http://msdn.microsoft.com/en-us/library/twk5762b(v=vs.110).aspx
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now