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

Determine if user is logged in #4070


User avatar
0
tcon created

Hi, is there a way to determine if a tenant user is logged in? Also, how does AspNet Zero handles tenant users that are logged in but then close their web browser?


1 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Property-inject IAbpSession and check that AbpSession.UserId != null && AbpSession.TenantId != null. It's injected for you in ABP's AppServices and Controllers.

    On session persistence, see my answer here: #3975@107058b8-982e-474d-9058-f0df7d850ca7