HELP - SESSION VARIABLES

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Roberts

    #1

    HELP - SESSION VARIABLES

    hi,
    After someone logs in to my site's main page I capture the user i.d. to a
    session variable like this:

    "Dim requestorID
    session("reques torID") = Request("HidUse rID")"

    When I perform "Welcome <%=session("req uestorID")%>"
    it displays "Welcome userid" as it should. Whenever I go to another page in
    the application and then return to the main page it displays "Welcome" only.

    Why does the session variable disappear?
    I have "<%Response.Buf fer = True%>".




  • The Grim Reaper

    #2
    Re: HELP - SESSION VARIABLES

    I'm sure others would point out that you should be asking a VBScript group,
    or ASP groups.

    It's got nothing to do with Response.Buffer - that just buffers up all your
    script output before sending the page to the client.

    My web site uses Session("whatev er") a few times and works fine... check
    your IIS settings or consult your page host.

    _______________ _______________ _______________ _______________ ________
    The Grim Reaper
    There are 10 types of people in this world, those who know binary and those
    who don't.

    "Mark Roberts" <the1fan@elvis. com> wrote in message
    news:ntmdncjSJL 5RgwPdRVn-sw@comcast.com. ..[color=blue]
    > hi,
    > After someone logs in to my site's main page I capture the user i.d. to a
    > session variable like this:
    >
    > "Dim requestorID
    > session("reques torID") = Request("HidUse rID")"
    >
    > When I perform "Welcome <%=session("req uestorID")%>"
    > it displays "Welcome userid" as it should. Whenever I go to another page[/color]
    in[color=blue]
    > the application and then return to the main page it displays "Welcome"[/color]
    only.[color=blue]
    >
    > Why does the session variable disappear?
    > I have "<%Response.Buf fer = True%>".
    >
    >
    >
    >[/color]


    Comment

    Working...