Is it possible to use .ASPXAUTH for my own logging system?
        Posted  
        
            by J. Pablo Fernández
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by J. Pablo Fernández
        
        
        
        Published on 2010-01-23T10:33:10Z
        Indexed on 
            2010/05/22
            10:40 UTC
        
        
        Read the original article
        Hit count: 322
        
For a web application I switched from using ASP.NET Membership to using my own log in system which just does something like this to mark a user as logged in:
Session["UserId"] = User.Id
Is it possible to store the user id in the ASPXAUTH cookie, piggybacking on its encryption, instead of using the standard session?
The goal is for the logged in state to last longer than a session and survive both browser and server restarts.
© Stack Overflow or respective owner