]> git.mxchange.org Git - shipsimu.git/commitdiff
Now really 2 hours cookie lifetime (was: 2 days)
authorRoland Häder <roland@mxchange.org>
Sat, 14 Jun 2008 19:34:37 +0000 (19:34 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 14 Jun 2008 19:34:37 +0000 (19:34 +0000)
inc/classes/main/response/class_HttpResponse.php
inc/config.php

index 9a9273350485635d6c9d97f07e379983492eaa49..5a21d8988aea96d544f2a8a69a440a0b82c39eb4 100644 (file)
@@ -244,6 +244,11 @@ class HttpResponse extends BaseFrameworkSystem implements Responseable {
                } // END - if
 
                // Set the cookie
+               //echo $cookieName."=".$cookieValue.
+               //      ", expire=".(time()+$this->getConfigInstance()->readConfig('cookie_expire')).
+               //      ", path=".$this->getConfigInstance()->readConfig('cookie_path').
+               //      ", domain=".$this->getConfigInstance()->readConfig('cookie_domain').
+               //      ", ssl=".$this->getConfigInstance()->readConfig('cookie_ssl');
                setcookie(
                        $cookieName,
                        $cookieValue,
index a5b19d4e54ef88a44102d957938911ee74d1ca30..02302f23bdaac3ac818ccc4243a7bb7edda66cc2 100644 (file)
@@ -222,7 +222,7 @@ $cfg->setConfigEntry('post_registration_action', "LoginAfterRegistrationAction")
 $cfg->setConfigEntry('user_class', "User");
 
 // CFG: COOKIE-EXPIRE
-$cfg->setConfigEntry('cookie_expire', 60*60*24*2); // Two hours!
+$cfg->setConfigEntry('cookie_expire', 60*60*2); // Two hours!
 
 // CFG: COOKIE-PATH
 $cfg->setConfigEntry('cookie_path', dirname($_SERVER['SCRIPT_NAME']) . "/");