ASP. NET V1.1 shares cookies with ASP. NET v2.0 and later apps

Source: Internet
Author: User

Currently, vs 2003 is developed in the main system, and all projects developed in the later stage are in vs 2010. Therefore, a problem occurs in sharing cookies and no cookie information is available, cookies are encrypted. The solution is:

V1.1 web. config:

 <  Authentication  Mode  = "Forms"  >  
<! -- ../Asp20/userlogin. aspx login address needs to be reconfigured -->
< Forms Name = ". Aspnetauth" Loginurl = "../Asp20/userlogin. aspx" Timeout = "20160" />
</ Authentication >

<! -- Restrict logon to use -->
< Authorization >
< Deny Users = "? " />
</ Authorization >

<! -- ASP. NET 1.1 & 2.0 shared Login -->
< Machinekey Validationkey = "Success" Decryptionkey = "9143f872799c1eaca5ec634d31495c015aac830d3951702d" Validation = "3DES" />

V2.0 web. config:

 <  Authentication  Mode  = "Forms"  > 
< Forms Name = ". Aspnetauth" Loginurl = "Userlogin. aspx" Timeout = "20160" />
</ Authentication >

<! -- ASP. NET 1.1 & 2.0 shared Login -->
< Machinekey Validationkey = "Success" Decryptionkey = "9143f872799c1eaca5ec634d31495c015aac830d3951702d" Validation = "Sha1" Decryption = "3DES" />

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.