Base solution for your next web application
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?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    RobrechtBelien created

    Done: Issue #224 is logged

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)