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. Kill Session [Urgent]

Kill Session [Urgent]

Scheduled Pinned Locked Moved ASP.NET
comhelp
3 Posts 2 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
    Muhammad Waqas Butt
    wrote on last edited by
    #1

    Hi, I'm using session for user name, now the problem is that when i click logoff i use this code to kill session: Session["username"]=null; Session.Abandon(); Response.Redirect("xxxx.aspx"); but this code didn't work and when i type userhome.aspx in brower. It allow user to get in this page and user name display on the page. Any solution... Thanks

    |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

    I 1 Reply Last reply
    0
    • M Muhammad Waqas Butt

      Hi, I'm using session for user name, now the problem is that when i click logoff i use this code to kill session: Session["username"]=null; Session.Abandon(); Response.Redirect("xxxx.aspx"); but this code didn't work and when i type userhome.aspx in brower. It allow user to get in this page and user name display on the page. Any solution... Thanks

      |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      try this session.remove("username"); best regard Pathan

      GOD HELP THOSE WHO HELP THEMSELVES

      M 1 Reply Last reply
      0
      • I Imran Khan Pathan

        try this session.remove("username"); best regard Pathan

        GOD HELP THOSE WHO HELP THEMSELVES

        M Offline
        M Offline
        Muhammad Waqas Butt
        wrote on last edited by
        #3

        Hi Imran, Thanks for your help. I'm using session for username, now the problem is that when i click logoff i use this code to kill session: Session.remove("username"); Session.Abandon(); Response.Redirect("xxxx.aspx"); but this code didn't work and when i type userhome.aspx in brower(I did not close current brower). It allow user to get in this page and user name display on the page. Any solution... and i do understand [GOD HELP THOSE WHO HELP THEMSELVES] but GOD also like those who help their brothers. Thanks

        |Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com

        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