Hello Support Team,
I am using aspnetzero asp.net core version 8.9.2. I want to get the current userId using AbpSession.UserId, but it null. Please, see the image below:
I see there's an other way (from abp site) that uses AbpSession.ToUserIdentifier(). But I cannot find this extension method.
Please, help me. Urgently
Thank you in advance
3 Answer(s)
-
0
hi
Are you using MVC or angular? Does your method require authentication and authorized to call?
Please share some code.
I see there's an other way (from abp site) that uses AbpSession.ToUserIdentifier(). But I cannot find this extension method.
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp/Runtime/Session/AbpSessionExtensions.cs#L46
-
0
-
0
Can you please share your angular part of code which cause you to not get current user info?