Base solution for your next web application
Open Closed

Extending AbpSession #2078


User avatar
0
mcmaestro created

I need to extend the AbpSession to keep up with a value that I can use through out the system. We have an another level the user can fall into. (lets say a Company) so when the user logs in under a company I want to save that information in the AbpSessions so I can apply filters to based on that value.

Is there a way I can add that field to the ABPSession object?


3 Answer(s)
  • User Avatar
    0
    worthyvii created

    I think you want to be using the tenant manager, multi-tenancy, and look at using EntityFramework.dynamicfilters for this filtering

  • User Avatar
    0
    mcmaestro created

    We already use the Tenant information but a tenant could have multiple companies that a user could reference for different pages. So I would like to be able to set that information up in the Session then use dynamic filters to reference the CompanyId. But I am not sure how to add the property to the session.

    Thanks!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you seen this forum topic #584@285df1ba-7f5b-42cb-9698-f1e142b50ed4 ?