c# - Asp.net Session preservation between bindings -
i'm building multi-tenant website hold several tenants , each of them has own configuration.
if user of tenant effort connect, after aspmembership authentication configuration.
user can have access several tenants, still tenant's configuration.
my question session: left have several bindings: cust1.domain.com
cust2.domain.com
cust3.domain.com
if user1 have access cust1 , custs, same sessin
you can utilize domain cookie setting in <forms ...>
section in web.config file. allow user login domain after logging 1 domain.
the domain cookie setting following.
<authentication mode="forms"> <forms loginurl="/" cookieless="usecookies" name="formauthentication" domain=".domain.com" /> </authentication>
also, ensure machine keys same in code base of operations renders *.domain.com applications.
c# asp.net session iis multi-tenant
No comments:
Post a Comment