clean just one session variable

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

    clean just one session variable

    Doing this in vb.net

    How do you clear just one session variable. I have Session("Client ID") and
    I want to clear just this session variable and not all the other session
    variables. I know session.clear() , but how do you just clear this only?


  • Mark Rae [MVP]

    #2
    Re: clean just one session variable

    "pvong" <phillip*at*yah oo*dot*comwrote in message
    news:OeQpQ3rGJH A.4564@TK2MSFTN GP02.phx.gbl...
    How do you clear just one session variable. I have Session("Client ID")
    and I want to clear just this session variable and not all the other
    session variables. I know session.clear() , but how do you just clear this
    only?
    Session.Remove( "ClientID")


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • pvong

      #3
      Re: clean just one session variable

      Thanks!

      "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
      news:%23IM0X5rG JHA.468@TK2MSFT NGP06.phx.gbl.. .
      "pvong" <phillip*at*yah oo*dot*comwrote in message
      news:OeQpQ3rGJH A.4564@TK2MSFTN GP02.phx.gbl...
      >
      >How do you clear just one session variable. I have Session("Client ID")
      >and I want to clear just this session variable and not all the other
      >session variables. I know session.clear() , but how do you just clear
      >this only?
      >
      Session.Remove( "ClientID")
      >
      >
      --
      Mark Rae
      ASP.NET MVP
      http://www.markrae.net

      Comment

      Working...