Results 1 to 6 of 6

Thread: sharing session vars from ASP to ASP.net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Location
    Chicago
    Posts
    30

    sharing session vars from ASP to ASP.net

    does anyone know how to access an asp session variable from asp.net? ASP.net does not use the same session vars that asp uses even though they might be the same name? I am not using the state server yet - and proably won't be able to for a bit, so I am just using plain sessions not SQL or any of that other stuff

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    we discussed this before, and the only option we see is passing the needed data for asp to aspx using querystrings
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Location
    Chicago
    Posts
    30
    unfortunely - I don't have that option - my secruity info is stored in the sessions, so query strings are out of the question

    any other ideas? I am migrating a vb webclass and asp app over to .net but the process will occur over several releases I don't want to useres to have to login twice in a hybrid app

  4. #4
    New Member
    Join Date
    Nov 2001
    Posts
    13
    I ran into this same dilemma (i'm in the process of converting a huge .asp system to .aspx).

    without querystrings, I think you're only other option is to load the Session vars into a Database Table in asp, then reload them into aspx session vars.

  5. #5
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207

    Same Problem

    I had the same problem I actually ended up writing the data to a text file on the server than when the aspx application ran I read and deleted it. I actually encrypted the data just incase but that was just me. I also suppose that you could encrypt the data then pass it in the querystring.

    Jeremy

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Location
    Chicago
    Posts
    30

    thanks

    Thanks for the suggestions guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width