why javascript can not read the cookie in asp.net ?
        Posted  
        
            by MemoryLeak
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by MemoryLeak
        
        
        
        Published on 2009-09-14T10:53:59Z
        Indexed on 
            2010/04/25
            4:53 UTC
        
        
        Read the original article
        Hit count: 353
        
I want to read the sessionid in cookie which is automatically generated by asp.net. such as ASP.NET_SessionId. but when i use javascript: document.cookie = "ASP.NET_SessionId=;" since i want to set the ASP.NET_SessionId to be empty.
but after the javascript executed, i found instead of change the ASP.NET_SessionId to empty, system generate a new cookie with ASP.NET_SessionId equal to empty.
why system not modify the cookie but generate a new one ?
Thanks!
© Stack Overflow or respective owner