Fix setting cookies

This commit is contained in:
Garvin Hicking 2008-12-02 12:07:46 +00:00
parent f8094202fe
commit 97fbaf3de3
5 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,9 @@
Version 1.4 ()
------------------------------------------------------------------------
* Fix setting cookies for 30 Days, not only ~43 Minutes. Thanks
to konus! [1.4-beta2]
* Adjust getting the right URL for karmavoting and shoutbox
plugins [1.4-beta2]

View File

@ -288,7 +288,7 @@ if (!$use_installer && !$_SESSION['no_smarty'] && serendipity_smarty_init()) {
function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30));
expire.setTime(today.getTime() + (60*60*24*30*1000));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}

View File

@ -13,6 +13,7 @@
<div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if} ">
<div class='serendipity_entryFooter'>
{if $entry.categories}
<span class="serendipity_entryIcon">
{foreach from=$entry.categories item="entry_category"}

View File

@ -25,7 +25,7 @@
function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30));
expire.setTime(today.getTime() + (60*60*24*30*1000));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}

View File

@ -70,7 +70,7 @@
function SetCookie(name, value) {ldelim}
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30));
expire.setTime(today.getTime() + (60*60*24*30*1000));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
{rdelim}