summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers
AgeCommit message (Collapse)AuthorFilesLines
2016-02-28clean current lock key in redis session driverroastduck1-0/+1
set $this->_lock_key to NULL after close Signed-off-by: roastduck <beantang.tang@gmail.com>
2016-02-05Fix regression on PHP7 when regenerating the session (#4362)Jonty Sewell1-1/+3
2016-02-05Setting the flag to FALSE is unnecessary since it defaults to FALSE, ↵Jonty Sewell1-10/+1
therefore this block of code can be reduced to a single statement Signed-off-by: Jonty Sewell <jontysewell@gmail.com>
2016-02-05Set the _key_exists flag to TRUE when the key does in fact exist. Set it to ↵Jonty Sewell1-2/+7
FALSE if the ID is being regenerated, and set it to TRUE once it's been written. Signed-off-by: Jonty Sewell <jontysewell@gmail.com>
2016-02-05Add a flag to determine whether the redis key currently exists, and if not, ↵Jonty Sewell1-2/+17
force creation of it at write-time Signed-off-by: Jonty Sewell <jontysewell@gmail.com>
2016-02-05Revert previous changes - fixing the source of the problem rather than ↵Jonty Sewell1-9/+3
working around it Signed-off-by: Jonty Sewell <jontysewell@gmail.com>
2016-02-03If attempting to write an empty session to Redis, a key will not actually be ↵Jonty Sewell1-3/+9
created, so when the driver tries to set the expiration timeout on the key, 0 is returned, triggering a warning from session_write_close Signed-off-by: Jonty Sewell <jontysewell@gmail.com>
2016-01-11[ci skip] Merge branch '3.0-stable' into developAndrey Andreev4-4/+4
2016-01-11[ci skip] Update ellislab.com links to https tooAndrey Andreev4-4/+4
2016-01-11Merge branch '3.0-stable' into developAndrey Andreev4-8/+8
2016-01-11[ci skip] Update codeigniter.com links to httpsAndrey Andreev4-8/+8
2016-01-11Merge branch '3.0-stable' into developAndrey Andreev4-8/+8
2016-01-11[ci skip] Bump year to 2016Andrey Andreev4-8/+8
2016-01-11Merge branch '3.0-stable' into developAndrey Andreev4-7/+25
Resolved conflicts: system/database/drivers/mysql/mysql_driver.php system/database/drivers/mysqli/mysqli_driver.php
2016-01-11Fix #4374Andrey Andreev1-0/+12
2016-01-07Fix #4362Andrey Andreev2-2/+8
2015-12-15Fix logical errors from af849696d43f5c3b68962af1ae5096151a6d9f1aAndrey Andreev3-4/+4
2015-12-15Really fix #4039Andrey Andreev1-1/+1
A typo from 8df6efd402180a6361b4dd619f5535d6c2bed334
2015-12-14Merge branch '3.0-stable' into developAndrey Andreev4-77/+115
2015-12-12[ci skip] Proper error handling for Sessions on PHP 5Andrey Andreev4-78/+110
This was actually a PHP bug, see https://wiki.php.net/rfc/session.user.return-value Also related: #4039
2015-12-11Fix #4039Andrey Andreev1-0/+6
2015-11-16[ci skip] Polish changes from PR #4240Andrey Andreev1-38/+33
2015-11-16do not try to auth/select db on redis connect failurekemeng1-11/+17
2015-11-16 Spaces around ! . Changelog entry in 3.1.0.kemeng1-2/+2
2015-11-16fixed a typo in unix socket parameter; change coding style to match CI; fix ↵kemeng1-6/+10
an elseif
2015-11-14add unix socket support to redis session driversskaje1-1/+19
2015-10-18Fix #4179Andrey Andreev1-0/+4
2015-04-30Fix #3823Andrey Andreev2-2/+2
2015-03-26Improve Session GC for files driverAndrey Andreev1-2/+4
Close #3701
2015-03-21[ci skip] Forbid DB session usage with cache_on enabledAndrey Andreev1-0/+4
2015-03-07Housekeeping.Master Yoda1-1/+1
Corrected typo in user guide for sessions, corrected misepelled key in calendar language file, added two links & updated wording on the repo readme. Signed-off-by:Master Yoda <jim_parry@bcit.ca>
2015-03-04Fix #3627: Keep timed locks for more than 5 secondsAndrey Andreev3-49/+23
Emulated locks for Redis and Memcached now have a TTL of 300 seconds (the default HTTP request timeout value on many environments) and 30 attemps, each separated by sleep(1), are made by the blocked request to try and obtain a lock if it has been freed. Additionaly, the blocking time for MySQL's locks, which are also timed, is also set to 300 seconds.
2015-02-23[ci skip] Fix #3618Andrey Andreev1-1/+1
2015-02-21Fix #3610Andrey Andreev1-1/+3
2015-02-19Remove 'autoinit' DB settingAndrey Andreev1-1/+1
It doesn't make sense to do a load->database() call but not connect to the database. IIRC there was more stuff in CI_DB_driver::initialize() at some point, so that was probably the reason why the setting existed in the first place. However, now it only results in users making invalid bug reports because they don't understand the feature ... Examples during just the past 2 weeks: #3571 #3601 #3607
2015-02-17Finishing PR #3596 <!DOCTYPE html>Ivan Tcholakov1-1/+2
2015-02-11Fix undefined variable notice in Session redis, memcached driversAndrey Andreev2-2/+2
2015-02-05Use session cookie name in gc checkTom Atkinson1-2/+8
2015-02-04Revert "Fixed return values types in session drivers"Gabriel Potkány3-5/+5
This reverts commit 5fa4b7266d7c61dc2482e529bd6afb9a67edadb7.
2015-02-04Fixed return values types in session driversGabriel Potkány3-5/+5
2015-02-04Fixed inconsistent return typesGabriel Potkány4-4/+4
2015-02-02Err ... rAndrey Andreev1-1/+1
2015-02-02Throw exception if 'files' session path is invalidAndrey Andreev1-4/+10
2015-01-29Fix #3529Andrey Andreev1-1/+1
Seems to be some really obscure PHP bug ...
2015-01-21Remove closing blocks at end of PHP filesvlakoff4-12/+0
2015-01-19[ci skip] feature/session (#3073): Add missing method docblocksAndrey Andreev4-0/+249
2015-01-19feature/session (#3073): Fix non-existing variable errorAndrey Andreev1-1/+1
2015-01-19feature/session (#3073): Only PostgreSQL data should be base64-encodedAndrey Andreev1-4/+15
2015-01-15feature/session (#3073): Third time is the charmAndrey Andreev1-1/+1
2015-01-15feature/session (#3073): Fix an error from previous patchAndrey Andreev1-5/+4