How do I maintain session state across multiple ASP.NET applications? RRS feed

  • Question

  • User-948111984 posted

    I am new to mobile apps and hope someone can help.  I am testing my app using Openwave V7 Emulator.

    My apps are in these directories:



    I am using cookieless sessions and have this in my web.config for both applications and the machine config:

    <sessionState mode="SQLServer"
    sqlConnectionString=" Data Source=MyDatabase;User Id=MyID;Password=MyPassword;"
    cookieless="true" timeout="60"/>

     The user loggs in from mobile_main where I have set some session variables to keep track of the user.  (/mobile_main/(hexzsn55femnr3bnkpxy1z45)/MobileDefault.aspx)

    The user then clicks on the trck link to get to the other application but I lose all the session variables that I have previously set.  (/trck/(puqfin451kr2zp45ggjak245)/mobile/truckunloads.aspx)

    Note that the session ID in the URL has changed when moving from the first app to the second.  Am I doing something wrong or am I missing a setting in one of the config files?

    Monday, June 18, 2007 4:51 PM