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 can I kill the session in server side ?

How can I kill the session in server side ?

Scheduled Pinned Locked Moved ASP.NET
questionsysadmintutorial
7 Posts 3 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.
  • G Offline
    G Offline
    Glen Liu
    wrote on last edited by
    #1

    Hi, Is there anybody knows how to kill a session in server side? Thanks :rose:

    J 1 Reply Last reply
    0
    • G Glen Liu

      Hi, Is there anybody knows how to kill a session in server side? Thanks :rose:

      J Offline
      J Offline
      Jon Sagara
      wrote on last edited by
      #2

      Session.Abandon()[^]

      Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

      G 1 Reply Last reply
      0
      • J Jon Sagara

        Session.Abandon()[^]

        Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

        G Offline
        G Offline
        Glen Liu
        wrote on last edited by
        #3

        Session.Abandon() just kill the current session, but I want to kill the session with the spical ID. Thanks.

        J 1 Reply Last reply
        0
        • G Glen Liu

          Session.Abandon() just kill the current session, but I want to kill the session with the spical ID. Thanks.

          J Offline
          J Offline
          Jon Sagara
          wrote on last edited by
          #4

          I think you'd have to keep track of all your sessions at the Application level in order to do that.

          Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

          F G 2 Replies Last reply
          0
          • J Jon Sagara

            I think you'd have to keep track of all your sessions at the Application level in order to do that.

            Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

            F Offline
            F Offline
            Faisal Khatri
            wrote on last edited by
            #5

            Well Rather killing ..If you want to kill a specific Session..then u can remove that session by Session.Remove("Name of Session") I hope it satisfies u... KHATRI

            J 1 Reply Last reply
            0
            • F Faisal Khatri

              Well Rather killing ..If you want to kill a specific Session..then u can remove that session by Session.Remove("Name of Session") I hope it satisfies u... KHATRI

              J Offline
              J Offline
              Jon Sagara
              wrote on last edited by
              #6

              That deletes a session item from the current session. From what I understood, he wants to abandon a specific session (not the current session, but some other user's session).

              Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

              1 Reply Last reply
              0
              • J Jon Sagara

                I think you'd have to keep track of all your sessions at the Application level in order to do that.

                Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

                G Offline
                G Offline
                Glen Liu
                wrote on last edited by
                #7

                Yes, I did. But I do not know how to use it. :confused: Thanks

                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