Can't read Session Object

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Can't read Session Object

    There is no great way to share session state between ASP and ASP.NET. But
    that doesn't mean you don't have options.

    Here are some common ways:
    * Store the data in a common database
    * Pass data from page to page on the QueryString
    * Store the data in cookies
    * Use a 3rd party session sharing component
    (Here's one:
    [url]http://www.consonica.com/solutions/dotnet/statestitch/index.html[/url])
    * Use COM Interop to provide an object that both sides can access that
    handles the data.
    Here's an example of the latter:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ConvertToASPNET.asp[/url]

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Kevin Thomas" <NOSPAMKevinRobertThomas2000@NOSPAMhotmail.com> wrote in
    message news:%234v3q83WDHA.1004@TK2MSFTNGP12.phx.gbl...
    > Hi
    > I'm running a mixed ASP, ASP.NET web site and I want to read a session
    var,
    > Session("myVar") that I've stored in an asp page from an aspx page.
    > However, when I try to read the variable from the session object (i.e.,
    > myTextbox.text = Session("myVar")) on the .aspx page, it comes out blank.
    >
    > How can I read a session var stored on an asp page from an aspx page?
    >
    > Thanks,
    >
    > Kevin
    >
    >

    Steve C. Orr, MCSD Guest

  2. Similar Questions and Discussions

    1. Can CF read session variables set by ASP?
      The website I am maintaining has a combination of ASP and ColdFusion. While I am quite familiar with ASP, I am much less so with ColdFusion. I am...
    2. adodb.recordset object and the IIS session object
      I was looking through the registry of a Windows 2000 Adv. Server I just built and noticed that the adodb.recordset object had been set to "both"...
    3. Help with 'Object Read Only' ERROR!
      Just simple new at this.. my setup is: XP Prof, running IIS Access 2002 I have a simple database that I'm trying to make available via...
    4. Session Timeout when trying to read database
      hi all, can you please tell me what i should do to avoid session timeout when displaying my database info in my asp form...
    5. Unable to read httpcontext during session end
      In my application, I have users that are registered in SQL Server. When they login, a flag is set to indicate they are logged in (dll). The...
  3. #2

    Default Re: Can't read Session Object

    Thanks Steve.

    Kevin
    "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    news:e0XXdN4WDHA.2268@TK2MSFTNGP11.phx.gbl...
    > There is no great way to share session state between ASP and ASP.NET. But
    > that doesn't mean you don't have options.
    >
    > Here are some common ways:
    > * Store the data in a common database
    > * Pass data from page to page on the QueryString
    > * Store the data in cookies
    > * Use a 3rd party session sharing component
    > (Here's one:
    > [url]http://www.consonica.com/solutions/dotnet/statestitch/index.html[/url])
    > * Use COM Interop to provide an object that both sides can access that
    > handles the data.
    > Here's an example of the latter:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ConvertToASPNET.asp[/url]
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > [url]http://Steve.Orr.net[/url]
    >
    >
    > "Kevin Thomas" <NOSPAMKevinRobertThomas2000@NOSPAMhotmail.com> wrote in
    > message news:%234v3q83WDHA.1004@TK2MSFTNGP12.phx.gbl...
    > > Hi
    > > I'm running a mixed ASP, ASP.NET web site and I want to read a session
    > var,
    > > Session("myVar") that I've stored in an asp page from an aspx page.
    > > However, when I try to read the variable from the session object (i.e.,
    > > myTextbox.text = Session("myVar")) on the .aspx page, it comes out
    blank.
    > >
    > > How can I read a session var stored on an asp page from an aspx page?
    > >
    > > Thanks,
    > >
    > > Kevin
    > >
    > >
    >
    >

    Kevin Thomas Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139