Other Ogame Resource Ticker

By Oliver Jensen Last update Jul 20, 2009 — Installed 858 times.

Cookie expiration doesn't work in Opera

in
Subscribe to Cookie expiration doesn't work in Opera 1 post, 1 voice

Vess Scriptwright
OperaWindows

I've been using a minor variation of this script in Opera and discovered that the cookie expiration doesn't work there. The cookies set by the script are supposed to expire in one year. However, according to Opera, the expiration field was empty. I don't know whether the same problem exists in Firefox; can't check now.

In order to fix the problem, replace

var expires = new Date();
expires.setTime(expires.getTime() + 1000 * 60 * 60 * 24 * 365);

with

var expires = (new Date (new Date ().getTime () + 1000 * 60 * 60 * 24 * 365)).toGMTString () + ';';

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel