Ticket #153 (closed defect: fixed)

Opened 4 months ago

Last modified 7 weeks ago

[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

cookie_expires.patch (1.6 kB) - added by gunark 4 months ago.
Patch to allow cookie expiry

Change History

Changed 4 months ago by gunark

Patch to allow cookie expiry

Changed 7 weeks ago by judofyr

  • status changed from new to closed
  • resolution set to fixed

This should work as expected in the coming Camping 2.0.

Note: See TracTickets for help on using tickets.