[lux commit] r114 - trunk/Lux/Auth/Adapter

0 views
Skip to first unread message

codesite...@google.com

unread,
Mar 2, 2008, 7:10:29 PM3/2/08
to lux...@googlegroups.com
Author: rodrigo.moraes
Date: Sun Mar 2 16:10:14 2008
New Revision: 114

Modified:
trunk/Lux/Auth/Adapter/Psql.php

Log:
Just cutting some lines from _processLogout().

Modified: trunk/Lux/Auth/Adapter/Psql.php
==============================================================================
--- trunk/Lux/Auth/Adapter/Psql.php (original)
+++ trunk/Lux/Auth/Adapter/Psql.php Sun Mar 2 16:10:14 2008
@@ -295,16 +295,11 @@
*/
protected function _processLogout()
{
- $status = parent::_processLogout();
-
- // Some time in the past (one month ago).
- $lifetime = time() - 2592000;
-
- // set cookie
+ // set cookie to some time in the past (one month ago)
setcookie(
$this->_config['cookie_name'],
'DELETED',
- $lifetime,
+ time() - 2592000,
$this->_config['cookie_path'],
$this->_config['cookie_domain'],
$this->_config['cookie_secure'],
@@ -312,6 +307,6 @@
);

// return status from parent
- return $status;
+ return parent::_processLogout();
}
}

Reply all
Reply to author
Forward
0 new messages