Rails cookies not working right
        Posted  
        
            by Michael Waxman
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Michael Waxman
        
        
        
        Published on 2010-05-27T19:29:37Z
        Indexed on 
            2010/05/27
            19:31 UTC
        
        
        Read the original article
        Hit count: 188
        
Rails is setting and returning a remember_token cookie like this:
= cookies[:remember_token] 
= value6c69b17681d2bf316f8eexpiresThu Jun 10 14:55:00 -0400 2010
In other words, when I'm calling the cookie I don't just get the value. Why is this?
I am setting the cookie as follows:
cookies[:remember_token] = { :value => @user.remember_me, :expires => 1.year.from_now}
What's going on here?
© Stack Overflow or respective owner