On 01/16/2012 02:49 PM, David E. Ross wrote: > On 1/16/12 1:47 PM, Ray_Net wrote: ... >> Is it posssible to modify the cookie in such a way that the expiration >> date will be 1/1/2100 ? >> > > Locate the cookie in the cookies.sqlite database. Locate within the > cookie the expiration date; RFC 6265 at > <http://www.rfc-editor.org/rfc/rfc6265.txt> should be useful for that. > Edit it with a hex editor.
Instead while on a browser page: Tools|SQLite Manager Open cookies.sqlite & modify the date there. For example I allowed a cookie to be set (I normally delete when closing the session) and the expiry (INTEGER) is: 1390075201 That decodes as: Sat Jan 18 12:00:01 PST 2014 $ date -d @1390075201 Sat Jan 18 12:00:01 PST 2014 If you wish to modify that to 2100 then you'll need to work out the seconds (seconds since 1970-01-01 00:00:00 UTC). However, you'll find that 2100 gives: $ date +%s -d 2100-01-18t12:00 date: invalid date `2100-01-18t12:00' so change to something reasonable, like 2030: $ date +%s -d "2030-01-18 12:00Z" 1894968000 $ date -d @1894968000 Fri Jan 18 04:00:00 PST 2030 So now change the expiry 1390075201 to 1894968000 and the cookie won't expire until Jan 18, 2030. > > See also bug #355048 at > <https://bugzilla.mozilla.org/show_bug.cgi?id=355048>. > > You might also find the following bug reports interesting: > #87296 at <https://bugzilla.mozilla.org/show_bug.cgi?id=87296> > #692315 at <https://bugzilla.mozilla.org/show_bug.cgi?id=692315> > _______________________________________________ support-seamonkey mailing list [email protected] https://lists.mozilla.org/listinfo/support-seamonkey

