Multiple sessions, how to kill only one

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

    Multiple sessions, how to kill only one

    I have 2 sessions that get created. One when the user logs in called
    "uname" and another called "idrma" when that user choses to begin a
    repair request. I know <%session.aband on% will kill both sessions,
    how to I only target one?

  • Mike Brind

    #2
    Re: Multiple sessions, how to kill only one


    "Mangler" <dwaldman@direc twireless.comwr ote in message
    news:1160508629 .445274.188010@ e3g2000cwe.goog legroups.com...
    >I have 2 sessions that get created. One when the user logs in called
    "uname" and another called "idrma" when that user choses to begin a
    repair request. I know <%session.aband on% will kill both sessions,
    how to I only target one?
    >
    You mean two session VARIABLES.

    To create a session variable: Session("Uname" ) = "Some value"

    To "kill" it: Session("Uname" ) = ""

    --
    Mike Brind


    Comment

    • Mangler

      #3
      Re: Multiple sessions, how to kill only one

      <% Session.Content s.Remove("uname ") %>

      Would this work the same?


      Mike Brind wrote:
      "Mangler" <dwaldman@direc twireless.comwr ote in message
      news:1160508629 .445274.188010@ e3g2000cwe.goog legroups.com...
      I have 2 sessions that get created. One when the user logs in called
      "uname" and another called "idrma" when that user choses to begin a
      repair request. I know <%session.aband on% will kill both sessions,
      how to I only target one?
      >
      You mean two session VARIABLES.
      >
      To create a session variable: Session("Uname" ) = "Some value"
      >
      To "kill" it: Session("Uname" ) = ""
      >
      --
      Mike Brind

      Comment

      • Mike Brind

        #4
        Re: Multiple sessions, how to kill only one

        Yes. No. My method retains the session variable, but sets its value to an
        empty string. Yours removes it altogether from the collection.

        You can test the content/value of your session variables like this:

        For each x in Session.Content s
        Response.Write x & ": " & Session.Content s(x) & "<br />"
        Next

        --
        Mike Brind

        "Mangler" <dwaldman@direc twireless.comwr ote in message
        news:1160510317 .847059.132120@ m7g2000cwm.goog legroups.com...
        <% Session.Content s.Remove("uname ") %>
        >
        Would this work the same?
        >
        >
        Mike Brind wrote:
        >"Mangler" <dwaldman@direc twireless.comwr ote in message
        >news:116050862 9.445274.188010 @e3g2000cwe.goo glegroups.com.. .
        >I have 2 sessions that get created. One when the user logs in called
        "uname" and another called "idrma" when that user choses to begin a
        repair request. I know <%session.aband on% will kill both sessions,
        how to I only target one?
        >
        >>
        >You mean two session VARIABLES.
        >>
        >To create a session variable: Session("Uname" ) = "Some value"
        >>
        >To "kill" it: Session("Uname" ) = ""
        >>
        >--
        >Mike Brind
        >

        Comment

        Working...