Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ImpersonatorUserId disappearing #3301


User avatar
0
robrechtbelien created

Hi, I'm working with the 4.0 version of .net core with jQuery. When I am using impersonation, it works perfectly but after a couple of minutos of inactivity I'm still logged in but the ImpersonatorUserId of the abp.session is empty. So then the red arrow and the option to switch back to my original user dissappear. Is there a timout setting on the abp session somewhere?


4 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    GenerateImpersonationTokenAsync method is creating a cache item for impersonation that is in this file MyCompanyName.AbpZeroTemplate.Core\Authorization\Impersonation\ImpersonationManager.cs and it's timeout is set to 1 minute.

  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    Could you please open an issue about this topic in this repository? <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core">https://github.com/aspnetzero/aspnet-zero-core</a> Then we will examine it.

  • User Avatar
    0
    robrechtbelien created

    Done: Issue #224 is logged

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks.