Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 467307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:34:03+00:00 2026-05-12T23:34:03+00:00

Is there a way to share the session between ASP3 And ASP.NET? Thanks

  • 0

Is there a way to share the session between ASP3 And ASP.NET?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:34:03+00:00Added an answer on May 12, 2026 at 11:34 pm

    Despite all of Microsoft’s best efforts to make ASP and ASP.NET coexist effortlessly, one area remains a stumbling block… session state. Fortunately the advantages of ASP.NET’s upgraded session state management far outweigh the inconvenience of not being able to pass “Classic” session information to .NET. Unfortunately there is no simple solution; the most I can offer is an easy to implement workaround.

    In trying to find a suitable resolution, I’ve come across two good options that are worth mentioning. The first involves parsing the session information out to hidden form fields on a “Classic” intermediate page and then submitting the page to a .NET intermediate page that loads the form fields into the session state. This is a good, simple solution, however it doesn’t work both ways. In .NET you cannot specify the page that you submit to. Each page has to PostBack to itself.

    The second option is probably closer to an actual solution than to a workaround. Billy Yuen at Microsoft has developed an effective solution. The code is elegant, the integration appears to be seamless, but I couldn’t get it to work on my system (remember I said that there was no simple solution, not that there was no solution at all). If this solution works for you, great! You won’t need my code and you’ll be happily passing session information from “Classic” to .NET like it’s going out of vogue, thanks for stopping by.

    Ok, if you’re still reading let me briefly describe the workaround I’ve created. It requires a database, but it is not important which type of database (though the code is written for SQL Server). When a page (source page) wants to redirect to another page (destination page) that uses a different version of ASP, it calls an intermediate page. The source intermediate page takes each session variable and adds it to the database along with a Globally Unique ID (GUID). Since “Classic” and .NET use different SessionID formats it is not possible to use SessionID, hence the use of a GUID. The source intermediate page then passes the GUID to the destination intermediate page through a Querystring variable. The destination intermediate page retrieves the session information from the database, cleans up after itself, and then redirects to the destination page. It’s similar to the first workaround, but supports transferring state in both directions.
    Code Usage
    Installation

    1. Run the SQL Query in “ASPSessionState.sql” on the database which will hold the temporary Session information.
    2. Copy the .asp and .aspx.* (SessionTransfer.aspx and SessionTransfer.aspx.cs) files to a folder on your website.
    3. Update connection object information in the “SessionTransfer.asp” and “SessionTransfer.aspx.cs” files. It is located in three places in each file (sorry about not consolidating the connection info).
    4. Compile the aspx files.
    5. The .asp and .aspx.* files must all reside in the same folder to work.

    Usage

    For use in a Hyperlink (Anchor Tag) or a Response.Redirect, set the destination URL to be one of the following:

    From a ASP “Classic” page:

    SessionTransfer.asp?dir=2aspx&url=<asp_dotnet_url>
    

    From an ASP.NET page:

    SessionTransfer.aspx?dir=2asp&url=<asp_classic_url>
    

    The code will transfer the Session information and Redirect the user to the url specified by or .
    Download

    You can download the code from here: session_transfer.zip (4.6 KB).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to share session among asp.net balanced applicatiosn without saving session
Is there any way to share Sessions between two web applications installed on Same
Is there a way I can share Http/Wicket Session information to the service layer
Is there a way to share XML documentation of the parameters to all the
Is there a way to share screen Skype link ? // I need to
Is there any way I can get a share picker like the one seen
Is there a way to see how many items in a dictionary share the
Is there a way to cache pages from previous visitors and then share that
Does any one know there have any way I can share a information (it
Is there any way to load a specific user session by providing the correct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.