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. logout problem[modified]

logout problem[modified]

Scheduled Pinned Locked Moved C#
csharpasp-nethelpquestion
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.
  • D Offline
    D Offline
    daku1
    wrote on last edited by
    #1

    when i click on logout button it does not log me out can some one tell me why is thing doing this. i have a question asp.net c# when i click logout button i am still login. what i have did made method for logout than called it from lougout button clik event but nothing happens because need to log out in my master page logout button there there for i created in my master page and called it in my master page button ckic event. the code are follow public void logout() { //sandip patel 7/18/2007 //Request.Cookies["memberID"].Expires = DateTime.Now.AddMinutes(20); //Session["Email Address"] = null ; //Session["Password"] = null ; Session.Abandon(); Response.Redirect("Default.aspx"); } and lougout click event i have call this function logout(); can some one tell me what am i doing wrong please sandip -- modified at 21:22 Friday 20th July, 2007

    D 1 Reply Last reply
    0
    • D daku1

      when i click on logout button it does not log me out can some one tell me why is thing doing this. i have a question asp.net c# when i click logout button i am still login. what i have did made method for logout than called it from lougout button clik event but nothing happens because need to log out in my master page logout button there there for i created in my master page and called it in my master page button ckic event. the code are follow public void logout() { //sandip patel 7/18/2007 //Request.Cookies["memberID"].Expires = DateTime.Now.AddMinutes(20); //Session["Email Address"] = null ; //Session["Password"] = null ; Session.Abandon(); Response.Redirect("Default.aspx"); } and lougout click event i have call this function logout(); can some one tell me what am i doing wrong please sandip -- modified at 21:22 Friday 20th July, 2007

      D Offline
      D Offline
      daku1
      wrote on last edited by
      #2

      when i click logout it does not log out thank you

      T 1 Reply Last reply
      0
      • D daku1

        when i click logout it does not log out thank you

        T Offline
        T Offline
        T EDY
        wrote on last edited by
        #3

        I also try to figure it out daku1..i use Session.RemoveAll() in my logout page and redirect it to my login page. But if i push back button in my browser it redirect me to my last page(for example: viewpage.aspx),and in that page i try to push my link page or any button and it tell me must to login first. Did u already have a session check in all your web pages, that tell user to login first if the session is null? Regard, TCim

        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