Open Closed

AuthServer-8.2.0-SessionId-is-null-error #7977


User avatar
0
alextoh97 created
  • ABP Framework version: v8.2.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: SessionId is null. It's not possible to save the session
  • Steps to reproduce the issue: Login Angular with admin

I'm upgrading the abp from 7.4 to 8.2, when I try login Angular now it will always prompt this error, It quite annoying keep hit error, its got solutions for this error?


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Are all your packages 8.2.0?

    When you sign in, the AbpIdentityProDomainModule(IdentitySessionClaimsPrincipalContributor) will add the Session Id.

    Thanks.

  • User Avatar
    0
    alextoh97 created

    Actually mine token had added the session Id claim to jwt token, but when it validate on authserver it not found

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a project or a template project to reproduce?

    I will fix this if I can reproduce.

    Thanks

  • User Avatar
    0
    alextoh97 created

    Sry, I can't share the project, I try clean all the abpSession and I realize when I login the web it will create two sessions in the same time. Itz normal?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, You can test this in a new template project.

    when I login the web it will create two sessions in the same time. Itz normal?

    Yes, One session for authserver and one for the web. since you are using a tiered project.

  • User Avatar
    0
    alextoh97 created

    But when I open the prevent concurrent login setting, it will left one only. when I open this setting, it will decrease the frequency for hit the error. It will hit the error when I close the web page then open back after sometime.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share steps to reproduce this in a new template?

    But when I open the prevent concurrent login setting, it will left one only.

    This is the default behavior.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07