Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to clear a seesion

how to clear a seesion

Scheduled Pinned Locked Moved ASP.NET
tutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jagan123
    wrote on last edited by
    #1

    hi iam using session("varname");now i want to clear this session how it wiil be possible plz

    J P P 3 Replies Last reply
    0
    • J jagan123

      hi iam using session("varname");now i want to clear this session how it wiil be possible plz

      J Offline
      J Offline
      John L Ponratnam
      wrote on last edited by
      #2

      You can use session("varname")=null; to clear the session

      Regards, LEE

      1 Reply Last reply
      0
      • J jagan123

        hi iam using session("varname");now i want to clear this session how it wiil be possible plz

        P Offline
        P Offline
        Pushpendra patwal
        wrote on last edited by
        #3

        Hi Session object in ASP.NET implements ICollection interface So Session has a method Session.Remove("entityName") ; to remove all the items in Session collection one may use Session.RemoveAll(); Session.Clear();

        P.S.

        1 Reply Last reply
        0
        • J jagan123

          hi iam using session("varname");now i want to clear this session how it wiil be possible plz

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          By using Session("varname").Remove

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups