Last post May 05, 2017 05:49 PM by Duardo
May 04, 2017 05:18 PM|Duardo|LINK
I am bug fixing an existing vb.net website. The site uses the built-in Login control. I have been trying to figure out how to get the userID and the user login status so that I can log off programmatically as needed. I have not used this control before.
Can you help get me pointed in the right direction? I have tried using Global.asax, but found out I would need a user context. Can you help me out?
May 05, 2017 12:32 AM|oned_gk|LINK
AFAIK new VS using asp.net identity
If using formsauthentication
Dim userid as string
If User.Identity.IsAuthenticated Then
userid = User.Identity.Name
May 05, 2017 05:49 PM|Duardo|LINK
Thank you for your reply. This added some wind to my sails.