Permalink
Browse files

Simplify cookie expiration

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1144 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 47dca38 commit 3675fe6feb7dc47db6cd13ec662e5cb98e58cab3 jakubvrana committed Sep 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/functions.inc.php
View
2 adminer/include/functions.inc.php
@@ -168,7 +168,7 @@ function where_link($i, $column, $value) {
* @return bool
*/
function cookie($name, $value) {
- return setcookie($name, $value, gmmktime(0, 0, 0, gmdate("n") + 1), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
+ return setcookie($name, $value, time() + 2592000, preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"])); // 2592000 = 30 * 24 * 60 * 60
}
/** Send Location header and exit

0 comments on commit 3675fe6

Please sign in to comment.