phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/sessions class.sessions_php.php, 1.1.1.1.2.5, 1.


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/sessions class.sessions_php.php, 1.1.1.1.2.5, 1.1.1.1.2.6
Date: Fri, 21 Nov 2003 00:45:48 +0000

Update of /cvsroot/phpgroupware/api/sessions
In directory subversions:/tmp/cvs-serv27112/api/sessions

Modified Files:
      Tag: proposal-branch
        class.sessions_php.php 
Log Message:
Added delete session to admin ... this currently will allow you to delete your 
own session.  I need to add something to prevent this.


Index: class.sessions_php.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/sessions/class.sessions_php.php,v
retrieving revision 1.1.1.1.2.5
retrieving revision 1.1.1.1.2.6
diff -C2 -d -r1.1.1.1.2.5 -r1.1.1.1.2.6
*** class.sessions_php.php      9 Nov 2003 19:27:04 -0000       1.1.1.1.2.5
--- class.sessions_php.php      21 Nov 2003 00:45:45 -0000      1.1.1.1.2.6
***************
*** 154,157 ****
--- 154,167 ----
                }
  
+               // This is ONLY intended for deleting OTHER user sessions, do 
not use it otherwise
+               function delete()
+               {
+                       $args = new safe_args();
+                       $args->set('sessionid','##REQUIRED##','string');
+                       $args = $args->get(func_get_args(),__LINE__,__FILE__);
+ 
+                       return unlink(get_cfg_var('session.save_path') . SEP . 
'sess_' . $args['sessionid']);
+               }
+ 
                function read_all_sessions()
                {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]