Problem in Sharing Session between ASP.NET 1.1 & ASP.NET 2.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rh.krish@gmail.com

    Problem in Sharing Session between ASP.NET 1.1 & ASP.NET 2.0

    I have an issue in sharing session between ASP.NET 1.1 & ASP.NET 2.0.
    Here are the details.

    The first application is the main application which runs in ASP.NET
    1.1. This app has a link to the second application which runs in
    ASP.NET 2.0. Both of them authenticate the users against Active
    Directory (have custom code to do this). The expectation is once I
    login to the 1st app, clicking on the link to 2nd app, should
    automatically sign me in. But it's not.

    I have the name, protection & path attributes and <machineKey>
    elements are same in both apps as follows.

    1. 1st App
    <forms loginUrl="login .aspx" name="adAuthCoo kie" timeout="60" path="/"
    slidingExpirati on="true" protection="All " />

    <machineKey
    validationKey=" 1325280F7B3FA07 743BD836031D641 C5944D0333D9144 580D009BC198CEC 609C9864FDC3215 70FA6FFF0995A1D 707D623422D47A0 0FE3AC66ABC5976 3D20F0CA"

    decryptionKey=" 250E5BF69C0FBDB 0F2DD02DC5C05D5 DF35003F79DD7E9 942"
    validation="SHA 1" />

    2. 2nd App
    <forms defaultUrl="ind ex.aspx" loginUrl="Login .aspx"
    name="adAuthCoo kie" timeout="20" path="/" slidingExpirati on="true"
    protection="All " />

    <machineKey
    validationKey=" 1325280F7B3FA07 743BD836031D641 C5944D0333D9144 580D009BC198CEC 609C9864FDC3215 70FA6FFF0995A1D 707D623422D47A0 0FE3AC66ABC5976 3D20F0CA"

    decryptionKey=" 250E5BF69C0FBDB 0F2DD02DC5C05D5 DF35003F79DD7E9 942"
    validation="SHA 1"
    decryption="3DE S" />

    Here are other technical details:

    OS: Windows XP Profession Serviec Pack 2
    IDE: Visual Studio 2003 (1st App), Visual Studio 2005 (2nd App)
    Hosted in: Both the apps are hosted on the same IIS.

    I've tried out all the options that I could think of. I need a
    solution ASAP. If anyone can point me in the right direction, I would
    greatly appreciate that.

    Thanks.
  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Problem in Sharing Session between ASP.NET 1.1 &amp; ASP.NET 2.0

    Two different applications cannot share session state between them,
    regardless of the ASP.NET version.

    -- Peter
    Site: http://www.eggheadcafe.com
    UnBlog: htp://petesbloggerama .blogspot.com
    Short Urls & more: http://ittyurl.net


    "rh.krish@gmail .com" wrote:
    I have an issue in sharing session between ASP.NET 1.1 & ASP.NET 2.0.
    Here are the details.
    >
    The first application is the main application which runs in ASP.NET
    1.1. This app has a link to the second application which runs in
    ASP.NET 2.0. Both of them authenticate the users against Active
    Directory (have custom code to do this). The expectation is once I
    login to the 1st app, clicking on the link to 2nd app, should
    automatically sign me in. But it's not.
    >
    I have the name, protection & path attributes and <machineKey>
    elements are same in both apps as follows.
    >
    1. 1st App
    <forms loginUrl="login .aspx" name="adAuthCoo kie" timeout="60" path="/"
    slidingExpirati on="true" protection="All " />
    >
    <machineKey
    validationKey=" 1325280F7B3FA07 743BD836031D641 C5944D0333D9144 580D009BC198CEC 609C9864FDC3215 70FA6FFF0995A1D 707D623422D47A0 0FE3AC66ABC5976 3D20F0CA"
    >
    decryptionKey=" 250E5BF69C0FBDB 0F2DD02DC5C05D5 DF35003F79DD7E9 942"
    validation="SHA 1" />
    >
    2. 2nd App
    <forms defaultUrl="ind ex.aspx" loginUrl="Login .aspx"
    name="adAuthCoo kie" timeout="20" path="/" slidingExpirati on="true"
    protection="All " />
    >
    <machineKey
    validationKey=" 1325280F7B3FA07 743BD836031D641 C5944D0333D9144 580D009BC198CEC 609C9864FDC3215 70FA6FFF0995A1D 707D623422D47A0 0FE3AC66ABC5976 3D20F0CA"
    >
    decryptionKey=" 250E5BF69C0FBDB 0F2DD02DC5C05D5 DF35003F79DD7E9 942"
    validation="SHA 1"
    decryption="3DE S" />
    >
    Here are other technical details:
    >
    OS: Windows XP Profession Serviec Pack 2
    IDE: Visual Studio 2003 (1st App), Visual Studio 2005 (2nd App)
    Hosted in: Both the apps are hosted on the same IIS.
    >
    I've tried out all the options that I could think of. I need a
    solution ASAP. If anyone can point me in the right direction, I would
    greatly appreciate that.
    >
    Thanks.
    >

    Comment

    Working...