c# - Sharing authentication between 3 websites -
i have main website, 2 sub-sites. want create simple way authenticate on website such can view other 2 sub-sites.
the websites setupa follows:
www.example.com/ www.example.com/subsite1 www.example.com/subsite2
as further requirement, subsite1 , subsite2 may re-used on different website.
could use built in authentication module in asp.net this? or have create own custom cookie?
yes, since 3 sites on same domain, share forms authentication cookie between 3 applications. achieved setting domain
property on 3 applications:
<forms domain="www.example.com" ...>
also work should share same machine keys between 3 applications. please take @ following article
on msdn goes further details.
Comments
Post a Comment