cvs: pear /Auth Auth.php
| From: | Martin Jansen | Date: | Thu, 07 Feb 2002 11:07:12 +0000 |
| Subject: | cvs: pear /Auth Auth.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2319@lists.php.net to get a copy of this message | ||
mj Thu Feb 7 06:07:12 2002 EDT
Modified files:
/pear/Auth Auth.php
Log:
* Implement setSessionname()
Index: pear/Auth/Auth.php
diff -u pear/Auth/Auth.php:1.28 pear/Auth/Auth.php:1.29
--- pear/Auth/Auth.php:1.28 Sun Feb 3 04:12:25 2002
+++ pear/Auth/Auth.php Thu Feb 7 06:07:12 2002
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth.php,v 1.28 2002/02/03 09:12:25 mj Exp $
+// $Id: Auth.php,v 1.29 2002/02/07 11:07:12 mj Exp $
//
require_once "PEAR.php";
@@ -132,7 +132,7 @@
*
* @author Martin Jansen <mj@php.net>
* @package Auth
- * @version $Revision: 1.28 $
+ * @version $Revision: 1.29 $
*/
define("AUTH_IDLED", -1);
@@ -355,6 +355,25 @@
} else {
$this->expire = $time;
}
+ }
+
+ // }}}
+ // {{{ setSessionname()
+
+ /**
+ * Set name of the session to a customized value.
+ *
+ * If you are using multiple instances of PEAR Auth
+ * on the same domain, you can change the name of
+ * session per application via this function.
+ *
+ * @access public
+ * @param string New name for the session
+ * @return void
+ */
+ function setSessionname($name = "PHPSESSID")
+ {
+ @session_name($name);
}
// }}}