Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Simplify cookie expiration

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1144 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit 3675fe6feb7dc47db6cd13ec662e5cb98e58cab3 1 parent 47dca38
jakubvrana authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  adminer/include/functions.inc.php
2  adminer/include/functions.inc.php
@@ -168,7 +168,7 @@ function where_link($i, $column, $value) {
168 168 * @return bool
169 169 */
170 170 function cookie($name, $value) {
171   - return setcookie($name, $value, gmmktime(0, 0, 0, gmdate("n") + 1), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
  171 + return setcookie($name, $value, time() + 2592000, preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"])); // 2592000 = 30 * 24 * 60 * 60
172 172 }
173 173
174 174 /** Send Location header and exit

0 comments on commit 3675fe6

Please sign in to comment.
Something went wrong with that request. Please try again.