We're gonna party like it's 0x7cf!



  • I was looking at the logout code on our website and found this little gem.

    HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName, string.Empty)
    {
        HttpOnly = true,
        Path     = FormsAuthentication.FormsCookiePath,
        //note: 0x7cf is hex for 1999.  I don't know why this is set as such as it just gets converted to an int.
        //I suspect it's a joke (or a WTF) 
        Expires  = new DateTime(0x7cf, 10, 12),
        Secure   = FormsAuthentication.RequireSSL
    };
    


  • See this :



  • @DoctaJonez said:

    it just gets converted to an int.
     

    Translation:

    My brain is too small for the equivalence of symbolic abstractions. 0-9 are the only real numbers.

     



  • @dhromed said:

    @DoctaJonez said:

    it just gets converted to an int.
     

    Translation:

    My brain is too small for the equivalence of symbolic abstractions. 0-9 are the only real numbers.

     


    No.

    Translation


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.