rfc:session-gc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:session-gc [2016/04/07 06:02] – Add patch yohgakirfc:session-gc [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
  
 ====== PHP RFC: Add session_gc() ====== ====== PHP RFC: Add session_gc() ======
-  * Version: 0.9+  * Version: 1.0
   * Create Date: 2014-03-13   * Create Date: 2014-03-13
-  * Modify Date: 2016-04-07+  * Modify Date: 2016-08-10
   * Author: Yasuo Ohgaki, yohgaki@ohgaki.net   * Author: Yasuo Ohgaki, yohgaki@ohgaki.net
-  * Status: Discussion+  * Status: Voting
   * First Published at: http://wiki.php.net/rfc/session-gc   * First Published at: http://wiki.php.net/rfc/session-gc
  
Line 14: Line 14:
  
 The best way to purge old session data is executing GC periodically. The best way to purge old session data is executing GC periodically.
 +
 +Although timestamp based session management is declined twice, it is mandatory for session management. Please refer to Strict Session RFC for details.
 +
 +  * https://wiki.php.net/rfc/precise_session_management
  
 ===== Proposal ===== ===== Proposal =====
Line 19: Line 23:
   * Add session_gc() API.   * Add session_gc() API.
   * Document calling session_gc() periodically is the best practice.   * Document calling session_gc() periodically is the best practice.
 +
 +
 +  int session_gc(void)
 +
 +It simply executes GC save handler defined.
 +
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 26: Line 36:
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
  
-PHP 7.1+PHP 7.2
  
 ===== Vote ===== ===== Vote =====
  
-VOTE: 2016/04/08 - 2016/04/15+This project requires a 2/3 majority. 
 +Vote starts: 2016/08/10 Vote ends: 2016/08/17 23:59:59 UTC
  
-<doodle title="Add session_gc() function" auth="yohgaki" voteType="single" closed="true"> +<doodle title="Add session_gc() function" auth="Yasuo Ohgaki" voteType="single" closed="true"> 
-  * Yes +   * Yes 
-  * No+   * No
 </doodle> </doodle>
  
-This project requires a 2/3 majority. 
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
Line 47: Line 57:
 After the project is implemented, this section should contain  After the project is implemented, this section should contain 
   - the version(s) it was merged to   - the version(s) it was merged to
 +    - PHP 7.1 and master branch (Merged to PHP 7.1 also by RM permission)
   - a link to the git commit(s)   - a link to the git commit(s)
 +    - http://git.php.net/?p=php-src.git;a=commitdiff;h=1cf179e4150308d8217d9517408ca5e22b5d607f
   - a link to the PHP manual entry for the feature   - a link to the PHP manual entry for the feature
 +    - http://svn.php.net/viewvc?view=revision&revision=339955 
  
 +===== References =====
  
 +  * https://bugs.php.net/bug.php?id=11100
rfc/session-gc.1460008950.txt.gz · Last modified: 2017/09/22 13:28 (external edit)