cvs: pear /Auth Auth.php
| From: | Marko Karppinen | Date: | Sun, 25 Aug 2002 05:13:10 +0000 |
| Subject: | cvs: pear /Auth Auth.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5947@lists.php.net to get a copy of this message | ||
markonen Sun Aug 25 01:13:10 2002 EDT
Modified files:
/pear/Auth Auth.php
Log:
Allow setting session id in $this->assignData() by moving it in front
of session_start() in $this->start(). This is for Auth_HTTP
Index: pear/Auth/Auth.php
diff -u pear/Auth/Auth.php:1.38 pear/Auth/Auth.php:1.39
--- pear/Auth/Auth.php:1.38 Tue Aug 6 09:05:07 2002
+++ pear/Auth/Auth.php Sun Aug 25 01:13:10 2002
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth.php,v 1.38 2002/08/06 13:05:07 jflemer Exp $
+// $Id: Auth.php,v 1.39 2002/08/25 05:13:10 markonen Exp $
//
require_once "PEAR.php";
@@ -132,7 +132,7 @@
*
* @author Martin Jansen <mj@php.net>
* @package Auth
- * @version $Revision: 1.38 $
+ * @version $Revision: 1.39 $
*/
define("AUTH_IDLED", -1);
@@ -316,9 +316,9 @@
*/
function start()
{
- session_start();
-
$this->assignData();
+
+ session_start();
if (!$this->checkAuth()) {
$this->login();