Ticket #153 (closed defect: fixed)
[PATCH] set expiry time for cookies
| Reported by: | gunark | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | camping.rb | Version: | |
| Keywords: | cookies expiry | Cc: |
Description
The attached patch makes it possible to set an expiry time for cookies.
For example:
@cookies[:foo] = {:value => "bar", :expires => Time.now + 1.hour}
The old simple way of setting cookies still works:
@cookies[:foo] = "bar"
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
