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. General Programming
  3. C#
  4. Expire Sessions via Session Id in ASP.Net C#?

Expire Sessions via Session Id in ASP.Net C#?

Scheduled Pinned Locked Moved C#
csharpquestionasp-netdata-structures
4 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.
  • M Offline
    M Offline
    Mohammad Dayyan
    wrote on last edited by
    #1

    I have an array includes list of users session id. I wanna expire all of them. Is it possible in ASP.Net (c#), if so, how ? else, how can I do it with C#? Thanks in advanced

    A P 2 Replies Last reply
    0
    • M Mohammad Dayyan

      I have an array includes list of users session id. I wanna expire all of them. Is it possible in ASP.Net (c#), if so, how ? else, how can I do it with C#? Thanks in advanced

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Try Session.Abandon(); This should destroy data related to the session. BTW, this is the C# forum. Try posting in the ASP.Net forum next time onwards....you have better chances of getting a propert answer.

      Build your own survey - http://www.factile.net

      M 1 Reply Last reply
      0
      • A Abhinav S

        Try Session.Abandon(); This should destroy data related to the session. BTW, this is the C# forum. Try posting in the ASP.Net forum next time onwards....you have better chances of getting a propert answer.

        Build your own survey - http://www.factile.net

        M Offline
        M Offline
        Mohammad Dayyan
        wrote on last edited by
        #3

        Well, Because I guess, it couldn't done in ASP.Net, I've written it in C# forum. AFAIK Session.Abandon(); expire current session ! I wanna expire a session with session id

        1 Reply Last reply
        0
        • M Mohammad Dayyan

          I have an array includes list of users session id. I wanna expire all of them. Is it possible in ASP.Net (c#), if so, how ? else, how can I do it with C#? Thanks in advanced

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          If I were doing this, I would use SessionIdManager[^] as a base. Basically, I would inherit from this and implement my own session management.

          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          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