Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How do I get userID of a logged in user?

$
0
0

Hi please I don't know How to get the UserID of a loggedin user and use it to insert record.

If I user this code below it gets a wrong Id:
if(page.user.Identity.Authenticated)
I can get username of a loggedin user but I want to get the UserID.

Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>