rfc:session-gc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:session-gc [2016/04/07 06:02] – Add patch yohgaki | rfc:session-gc [2016/08/31 20:45] – yohgaki | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Add session_gc() ====== | ====== PHP RFC: Add session_gc() ====== | ||
- | * Version: | + | * Version: |
* 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: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
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:// | ||
===== 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=" | + | <doodle title=" |
- | * Yes | + | |
- | * No | + | |
</ | </ | ||
- | This project requires a 2/3 majority. | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 47: | Line 57: | ||
After the project is implemented, | After the project is implemented, | ||
- the version(s) it was merged to | - the version(s) it was merged to | ||
+ | - master branch | ||
- a link to the git commit(s) | - a link to the git commit(s) | ||
+ | - http:// | ||
- a link to the PHP manual entry for the feature | - a link to the PHP manual entry for the feature | ||
+ | - http:// | ||
+ | ===== References ===== | ||
+ | * https:// |
rfc/session-gc.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1