ASP Session Variable Info missing after accessing ASPX

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

  1. #1

    Default ASP Session Variable Info missing after accessing ASPX

    I have a mix web site, ASP and ASPX files.
    I have assigned a value to Session("Date") and the href to
    an ASPX page. When I further href to another ASP Page. The
    content in Session("Date") becoming blank. Is it in
    design? Or bug? Is there any work around solution?

    Also, Is there any way to secure my ASPX source code from
    client? I don't want clients to be able to see the source
    code but they can run the ASPX.

    Thanks
    Arthur Guest

  2. Similar Questions and Discussions

    1. Accessing an .aspx page from server in a DMZ
      We are currently hosting our own web site; the web site of course resides outside the DMZ. For security reasons, the network crew will not allow us...
    2. Accessing a aspx page using HttpWebRequest from another aspx page on the same webapp
      Did you have any luck on this as I have the same problem. Maybe you can help me out of you solved your problem.
    3. #25551 [Opn->Bgs]: Session data loss when accessing session from multiple windows.
      ID: 25551 Updated by: sniper@php.net Reported By: brett at realestate-school dot com -Status: Open +Status: ...
    4. #25551 [Bgs->Opn]: Session data loss when accessing session from multiple windows.
      ID: 25551 User updated by: brett at realestate-school dot com Reported By: brett at realestate-school dot com -Status: ...
    5. #25551 [NEW]: Session data loss when accessing session from multiple windows.
      From: brett at realestate-school dot com Operating system: Linux - Red Hat PHP version: 4.3.1 PHP Bug Type: Session related...
  3. #2

    Default Re: ASP Session Variable Info missing after accessing ASPX

    Are you initially setting Session("Date") in ASP or ASPX? Session variables
    don't automatically pass from ASP and ASPX pages in the same application.
    (If this is what you're trying to do - take a look at
    [url]http://www.sessionbridge.com[/url]. It's a utility to help with this.)

    If you're setting it in an ASP page, navigating to an ASPX page, and then
    going to another ASP page - the session variable set on the first page
    should still be available as long as your timeout hasn't expired. By having
    ASP and ASPX in the same application, the client has 1 session with ASP and
    another session with ASPX. This shouldn't be any different than navigating
    to a page on another site and then back to yours (again, as long as the
    timeout hasn't expired).

    As far as securing the ASPX, if you use "code-behind" pages - that code is
    compiled into the DLL and only your HTML is in the ASPX file.

    Jeff Trotman
    Westglenn Software

    "Arthur" <ArthurLoh@asiantat.com> wrote in message
    news:08db01c34aaf$7f719bf0$a401280a@phx.gbl...
    > I have a mix web site, ASP and ASPX files.
    > I have assigned a value to Session("Date") and the href to
    > an ASPX page. When I further href to another ASP Page. The
    > content in Session("Date") becoming blank. Is it in
    > design? Or bug? Is there any work around solution?
    >
    > Also, Is there any way to secure my ASPX source code from
    > client? I don't want clients to be able to see the source
    > code but they can run the ASPX.
    >
    > Thanks

    Jeff Trotman 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