Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
949a02e
WIP add ini values
Jan 10, 2016
9f3a2aa
Merge branch 'master' into master-rfc-presice-session-management
Jan 19, 2016
de296c5
WIP: precise session. Test fails due to new internal data "__PHP_SESS…
Jan 19, 2016
11b33f0
WIP: Add session_info(), session_gc() function. Update tests
Jan 21, 2016
96cc747
WIP: Implement internal data validation. Make php_session_regenerate_…
Jan 22, 2016
7b91c51
Fix test failures
Jan 22, 2016
1aa288c
WIP: Fix tests, add tests. Use proper API. Do not validate PS(interna…
Jan 23, 2016
79a838a
WIP: Add session.num_sids config. Add tests. Needs some more works.
Jan 23, 2016
492cd41
WIP: Refactor. Need more tests.
Jan 23, 2016
e12405d
WIP: Refactor
Jan 23, 2016
f3d7d87
WIP: Refactor. Fix and add more tests.
Jan 23, 2016
1607bae
Merge branch 'master-rfc-precise-session-management' of github.com:yo…
Jan 25, 2016
68ebbcd
WIP: Implement session destroy duration
Jan 25, 2016
6a2cbee
Set httponly by default. Use sha1 as hash/5 for hash_bits_per_charact…
Jan 25, 2016
5ff49c4
Remove TTL_UPDATE. "session object" is misleading. Rename it to "sess…
Jan 25, 2016
7591736
Remove TLL
Jan 25, 2016
be71591
Fix WDDX test
Jan 25, 2016
b94541c
Merge remote-tracking branch 'upstream/master' into master-rfc-precis…
Jan 25, 2016
9682c85
Add warning for __PHP_INTERNAL__ key in $_SESSION
Jan 25, 2016
da9ca92
Disallow negative values for INIs. Add edge case tests.
Jan 25, 2016
6af3d5f
Add invalid internal data test. Refactor a little. Add internal data …
Jan 26, 2016
185fd9f
Fix standard/tests/serialize/bug70219_1.phpt. Add protection against …
Jan 26, 2016
10d04a3
http_session_vars is REFVAL. Fixed tests. Warn session_decode() also
Jan 26, 2016
9f1e7f9
Do not regenerated when internal data is broken. Return correct statu…
Jan 28, 2016
e291041
WIP
Jan 28, 2016
9731c8b
Add another expired sessoin access phpt
Jan 28, 2016
84f8f71
Fix test dependency between PHP versions. This fixes test depency, bu…
Jan 29, 2016
fd91912
Merge remote-tracking branch 'upstream/master' into master-rfc-precis…
Jan 29, 2016
38ffb3c
Fix typo
Jan 29, 2016
d90b989
Save an indent. Fix test to return proper type
Jan 29, 2016
26facc2
GC function is supposed to return num of deleted sessions. -1 for err…
Jan 29, 2016
7cba104
hash_bits_per_character default is 5 now
Jan 29, 2016
8b6018b
Destroy session, set status to disabled and make sure return from the…
Jan 29, 2016
405446b
Make security error message explict. Keep offending session data for …
Jan 29, 2016
1d23531
session_destroy() made not to support destroy duration.
Jan 29, 2016
512dee0
Since shutdown function is not called. PS(id) can be used
Jan 29, 2016
c60693e
Add comments to code for eaiser review
Jan 29, 2016
72981f7
Add missing ZSTR_VAL
Jan 29, 2016
19e28ad
Add comment for further improment
Jan 31, 2016
e9d08e1
Do not consider save handlers that do not lock session data. Remove c…
Jan 31, 2016
84f0579
Merge remote-tracking branch 'upstream/master' into master-rfc-precis…
Feb 1, 2016
dd429c8
Update comments
Feb 1, 2016
46854d9
Clean $_SESSION when session_destroy(false). Do not raise error when …
Feb 26, 2016
5534123
Adjust tests
Feb 26, 2016
5a82138
Convert E_RECOVERABLE_ERROR to exception
Mar 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ext/session/php_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ typedef struct _php_ps_globals {
zend_bool use_strict_mode; /* whether or not PHP accepts unknown session ids */
zend_bool lazy_write; /* omit session write when it is possible */
zend_string *session_vars; /* serialized original session data */

zval internal_data;
zend_long ttl; /* Session TTL - (UPDATED + ttl) < time(NULL) is expiration condition */
zend_long ttl_update; /* UPDATED timestamp update frequency - (UPDATED + ttl_update) < time(NULL) is update condition */
zend_long ttl_destroy; /* Time to actually remove session data from storage - (UPDATED + ttl_destroy) < time(NULL) is removal condition */
zend_long regenerate_id; /* Session ID regeneration period - (CREATED + regenerate_id) < time(NULL) is regeneration condition */
zend_long num_sids; /* Number of session IDs stored */
} php_ps_globals;

typedef php_ps_globals zend_ps_globals;
Expand Down
Loading