dwaite / cookiejar

Manage client-side HTTP cookies in Ruby
BSD 2-Clause "Simplified" License
42 stars 69 forks source link

more updates including max-age, paths and validation failures #18

Closed digininja closed 8 years ago

digininja commented 9 years ago

I don't know if it is officially part of the basic version cookie standard but PHPsends the max-age field when it sets a cookie to expire, this PHP

setcookie ("notsession", "I am", time()+60*60*24*30, "", "", true, true);

sets the following cookie:

Set-Cookie: notsession=I+am; expires=Thu, 13-Nov-2014 12:12:44 GMT; Max-Age=2592000; secure; httponly