ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Lib-Dev
php-Lib-Dev
[phplib-dev] cvs commit
by uw other posts by this author
May 30 2001 9:26PM messages near this date
[phplib-dev] cvs commit | [phplib-dev] cvs commit
From: uw
Date: Wed May 30 15:15:43 2001
Modified files:
      php-lib/php/session/session4.inc
      php-lib/php/session/session4_custom.inc

Log message:
- continued the work on Maxim's user4
- tried to do some clean up


Index: php-lib/php/session/session4.inc
diff -u php-lib/php/session/session4.inc:1.9 php-lib/php/session/session4.inc:1.10
--- php-lib/php/session/session4.inc:1.9	Wed May 30 13:27:21 2001
+++ php-lib/php/session/session4.inc	Wed May 30 15:15:12 2001
@@ -7,14 +7,22 @@
 * @copyright 1998,1999 NetUSE AG, Boris Erdmann, Kristian Koehntopp
 *            2000 Teodor Cimpoesu <teo@[...].net> 
 * @author    Teodor Cimpoesu <teo@[...].net> , Ulf Wendel <uw@[...].de>
-* @version   $Id: session4.inc,v 1.9 2001/05/30 11:27:21 uw Exp $
+* @version   $Id: session4.inc,v 1.10 2001/05/30 13:15:12 uw Exp $
 * @access    public
 * @package   PHPLib
 */ 
-class Session4 {
+class Session {
 
- 
+
   /**
+  * Session name 
+  * 
+  * @deprec $Id: session4.inc,v 1.10 2001/05/30 13:15:12 uw Exp $s
+  */
+  var $classname = "Session";
+
+  
+  /**
   * Name of the autoinit-File, if any.
   *
   * @var  string
@@ -87,7 +95,7 @@
   /**
   *
   * @var    string  
-  * @deprec $Id: session4.inc,v 1.9 2001/05/30 11:27:21 uw Exp $
+  * @deprec $Id: session4.inc,v 1.10 2001/05/30 13:15:12 uw Exp $
   */
   var $fallback_mode;
   
@@ -179,6 +187,9 @@
   */
   function id($sid = '') {
     
+    if (!$sid)
+      $sid = ("" == $this-> cookiename) ? $this->classname : $this->cookiename;
+      
     if ($sid = (string)$sid) {
     
       $this-> id = $sid;
@@ -196,7 +207,7 @@
   
   /**
   * @brother id()
-  * @deprec  $Id: session4.inc,v 1.9 2001/05/30 11:27:21 uw Exp $
+  * @deprec  $Id: session4.inc,v 1.10 2001/05/30 13:15:12 uw Exp $
   * @access public  
   */  
   function get_id($sid = '') {
@@ -256,7 +267,7 @@
   *		 doesn't seem to do (looking @ the session.c:940)
   * uw: yes we should keep it to remain the same interface, but deprec. 
   *
-  * @deprec $Id: session4.inc,v 1.9 2001/05/30 11:27:21 uw Exp $
+  * @deprec $Id: session4.inc,v 1.10 2001/05/30 13:15:12 uw Exp $
   * @access public  
   * @global $HTTP_COOKIE_VARS
   */
@@ -298,7 +309,7 @@
   * @return string  rewritten url with session id included
   * @see    $trans_id_enabled
   * @global $HTTP_COOKIE_VARS
-  * @deprec $Id: session4.inc,v 1.9 2001/05/30 11:27:21 uw Exp $
+  * @deprec $Id: session4.inc,v 1.10 2001/05/30 13:15:12 uw Exp $
   * @access public  
   */
   function url($url) {
Index: php-lib/php/session/session4_custom.inc
diff -u php-lib/php/session/session4_custom.inc:1.13 php-lib/php/session/session4_custom.inc
:1.14
--- php-lib/php/session/session4_custom.inc:1.13	Wed May 30 13:27:22 2001
+++ php-lib/php/session/session4_custom.inc	Wed May 30 15:15:12 2001
@@ -8,12 +8,12 @@
 *             2000 Teodor Cimpoesu <teo@[...].net> 
 * @author     Maxim Derkachev <kot@[...].ru> , Teodor Cimpoesu <teo@[...].net>,
 *             Ulf Wendel <uw@[...].de> 
-* @version    $Id: session4_custom.inc,v 1.13 2001/05/30 11:27:22 uw Exp $
+* @version    $Id: session4_custom.inc,v 1.14 2001/05/30 13:15:12 uw Exp $
 * @package    PHPLib
 * @access     public
 */ 
 
-class Session4_Custom extends Session4 {
+class Session_Custom extends Session {
 
 
   /**
@@ -100,7 +100,7 @@
   /**
   * Delete callback
   */
-  function del () {
+  function del() {
     
     if ($this-> module == 'user') {
       $this-> that->ac_delete($this->id, $this->name);



---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe@[...].de
For additional commands, e-mail: phplib-dev-help@lists.netuse.de

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved