Session Variables - not there when new page in app opens?

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

  1. #1

    Default Session Variables - not there when new page in app opens?

    I thought I had made real headway in understanding the server/client
    stuff in asp.net.

    In main.aspx page, I use a Response.Write to page2.aspx to a target
    frame. I have several session variables that I set in main.aspx.

    When page2.aspx loads, the variables are not there. The only way I know
    that is because I assign their values to labels on page load. I've also
    tried "submitting" the form back to itself, but that doesn't grab the
    session variables either. Both pages are within a mainframe.aspx page.

    I'm setting the variables immediately before using them in vs.net debug
    mode, etc.

    How would I even figure out how to trace this. Any clues welcome.

    thanks,

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke Guest

  2. Similar Questions and Discussions

    1. #39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
      From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug...
    2. #39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables
      From: krudtaa at yahoo dot com Operating system: All PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug...
    3. #16890 [Com]: Session variables lost during page changes
      ID: 16890 Comment by: psloan at exchange dot purdue dot edu Reported By: phpbug at ski-info-online dot com Status: ...
    4. Dynamic content within page? Changing session variables with VBScript?
      > A URL would be helpful. It's not on a public server... This is for an intranet application. This would work fine, except that eventually...
    5. New session opens on task bar
      In Windows XP, when I have one session of word 2002 open and I open a new one, the new session only opens on the task bar and I am still in the old...
  3. #2

    Default Re: Session Variables - not there when new page in app opens?

    Thanks for reply...

    I don't think I can use server.transfer(?) because I need to set a
    target frame for the page.

    I have mainframe.aspx, within that
    leftframe, src=main.aspx
    rightframe, src=test.aspx

    From main.aspx I set session variables. Theoretically, shouldn't they be
    available from anywhere within the mainframe.aspx? When I do a
    response.write from main.aspx to load test.aspx into right frame, but
    staying within the mainframe.aspx they disappear. Additional explanation
    would be welcome.

    thanks.

    Kathy

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Kathy Burke 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