Open Closed

Session.UserId Is Null ! #9867


0
KocSchool created

Project Detail

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version?
    • v9.1.0
  • What is your product type (Angular or MVC)?
    • Angular 9+
  • What is product framework type (.net framework or .net core)?
    • .NET Core

<br>

  • I'm logging in.with login manager
  • But i don't access to userId

1 Answer(s)
  • 0
    zony created
    Support Team

    Hi KocSchool, Can you provide the complete login interface code? Judging from the provided code, there seems to be no problem.

    If you want to temporarily change the AbpSession.UserId, please use the IAbpSession.Use() method.After calling LoginManager.LoginAsync(), the value of AbpSession will not be set. The value of AbpSession is obtained through the Cookie or Token carried in the request.