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 reset SessionID

how to reset SessionID

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorialquestion
3 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.
  • S Offline
    S Offline
    Sundar_R
    wrote on last edited by
    #1

    How do we reset the sessionid,when we click on file --> new window or CNTRL + N existing sessionid is being used. Is it possible to issue a new sessionid to the browser in that case ? i tried resetting the sessionid cookie but nothing happened Session.Abandon(); Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", "")); Even after resetting consecutive postbacks still have the other windows sessionid. :((

    C G 2 Replies Last reply
    0
    • S Sundar_R

      How do we reset the sessionid,when we click on file --> new window or CNTRL + N existing sessionid is being used. Is it possible to issue a new sessionid to the browser in that case ? i tried resetting the sessionid cookie but nothing happened Session.Abandon(); Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", "")); Even after resetting consecutive postbacks still have the other windows sessionid. :((

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This is getting asked constantly. I don't believe there is a solution.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • S Sundar_R

        How do we reset the sessionid,when we click on file --> new window or CNTRL + N existing sessionid is being used. Is it possible to issue a new sessionid to the browser in that case ? i tried resetting the sessionid cookie but nothing happened Session.Abandon(); Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", "")); Even after resetting consecutive postbacks still have the other windows sessionid. :((

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Member 2437558 wrote:

        How do we reset the sessionid,when we click on file --> new window or CNTRL + N

        The window is opened in the same session, so it should have the same session id. If you have any data that is page specific, you should not store it in session state, you should make it follow the page.

        Despite everything, the person most likely to be fooling you next is yourself.

        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