summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session
AgeCommit message (Collapse)AuthorFilesLines
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 Andreev7-7/+7
2016-01-11[ci skip] Update ellislab.com links to https tooAndrey Andreev7-7/+7
2016-01-11Merge branch '3.0-stable' into developAndrey Andreev7-14/+14
2016-01-11[ci skip] Update codeigniter.com links to httpsAndrey Andreev7-14/+14
2016-01-11Merge branch '3.0-stable' into developAndrey Andreev7-14/+14
2016-01-11[ci skip] Bump year to 2016Andrey Andreev7-14/+14
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 Andreev5-77/+138
2015-12-12[ci skip] Proper error handling for Sessions on PHP 5Andrey Andreev5-78/+133
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-07-24Fixed typosCalvin Tam1-1/+1
2015-04-30Fix #3823Andrey Andreev2-2/+2
2015-03-30Fix #3717Andrey Andreev1-1/+1
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-13[ci skip] Remove NS usage in CI_SessionAndrey Andreev1-1/+1
It was accidental
2015-03-12Throw an exception on invalid session driver configAndrey Andreev1-6/+2
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-15add <!DOCTYPE html>Tjoosten1-1/+2
2015-02-13Fix a typo in CI_SessionAndrey Andreev1-1/+1
2015-02-11Fix undefined variable notice in Session redis, memcached driversAndrey Andreev2-2/+2
2015-02-07Add 'sess_regenerate_destroy' settingAndrey Andreev1-1/+1
2015-02-05Use session cookie name in gc checkTom Atkinson1-2/+8
2015-02-05Merge pull request #3551 from gadelat/voidsAndrey Andreev4-4/+4
Fixed inconsistent return types
2015-02-05[ci skip] Fix a bug where session IDs are not regeneratedAndrey Andreev1-2/+1
Reported via the forums: http://forum.codeigniter.com/thread-996.html
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-02Fix a wrong var name in CI_Session::mark_as_temp()Andrey Andreev1-1/+1