Single Sign On in Forms Authentication

If you have for example two ASP.NET applications and you want to share the authentication cookie between those application, you can do that using the SSO.

To configure your applications to share the authentication cookie, each application has to have same configurations in the web.config file. One important notice in here that the name, protection and path attributes should be the same also in the two web.config files

<authentication mode="Forms" >
        <forms loginUrl="login.aspx" name=".ASPXAUTH" protection="All" timeout="90" path="/" />
      </authentication>

      <machineKey validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE" decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
          validation="SHA1" />

Copy the above configurations into the web.config.


Best Regards,

 

Published 08 November 2007 01:05 PM by haissam

Comments

No Comments

This site

Search

Go

This Blog

Syndication

Sponsors

  • MaximumASP
  • Breaking News
  • Find a Job
  • Social Bookmarking
    Tidebuy Reviews
    Online Shopping
    asp.net hosting
    UK online local dating