Results 1 to 4 of 4

Thread: Session Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    121

    Session Problem

    Hi All!!!


    I m facing a small problem.I have made a aspx page which is to be linked with existing ASP application.

    I need to access the Session variable in my new ASPX page from the existing ASP page .

    i wrote the following Code

    Code:
    txtUser.Text = Session["CurLgn"].ToString();
    Session["CurLogin"] is the name of session variable in the existing ASP page.


    Is there some trick to include this session variable in ASPX page.


    Plz suggest

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Session Problem

    Don't think this is possible directly...you could write a web service to get hold of it. In fact. I am not sure if this is possible.

    Are they on the same server?


    Woof

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    121

    Re: Session Problem

    yes they are on same server

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Location
    Midwest
    Posts
    27

    Re: Session Problem

    you can't access classic asp session variables from asp .net.

    i found only one semi-secure way and that is to store the variables in a DB that uses a unique key.

    pass the unique key via querystring to a middle asp .net page that sets the session variables and immediately redirects to the asp .net page and pull from that.

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