Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.7k
Misc. fixes in database session storage#13075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
dgrammatiko commentedDec 3, 2016
@mbabker is there any noticeable improvement in the response times? |
mbabker commentedDec 3, 2016
TBH, probably not. The one thing that might make a difference is moving garbage collection to a point after the HTML response should have been sent, but really its only a single DELETE query we're talking about here. Symfony does this in part (seesymfony/symfony#10908) to allow their handler to use locking mechanisms and transactions. So it honestly doesn't hurt us much, but at the same time it's probably not extremely beneficial either. |
andrepereiradasilva commentedDec 13, 2016
with this patch applied when using shared sessions i cannot logout |
andrepereiradasilva commentedDec 18, 2016
@mbabker any idea why i could'nt log out in shared sessions afte this patch? (add to manually delete the cookie to logout) |
mbabker commentedDec 18, 2016
Not a clue. Nothing in the database session handler is client aware, including shared sessions. |
mbabker commentedDec 18, 2016
Found it. The issue is unrelated to this patch. |
mbabker commentedDec 18, 2016
See#13273 The branch athttps://github.com/mbabker/joomla-cms/tree/logout-database-sessions combines these two PRs for convenience. |
andrepereiradasilva commentedDec 19, 2016
I have tested this item ✅ successfully on939278c This comment was created with theJ!Tracker Application atissues.joomla.org/tracker/joomla-cms/13075. |
csthomas commentedDec 20, 2016
I have tested this item ✅ successfully on939278c This comment was created with theJ!Tracker Application atissues.joomla.org/tracker/joomla-cms/13075. |
csthomas commentedDec 21, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
One warning. Can anybody confirm? |
zero-24 commentedDec 21, 2016
Can you double check that you have the very last chnages from staging? |
csthomas commentedDec 21, 2016
I have checked again and the same result. After I applied then Logged Users module is empty after relogin as admin. |
csthomas commentedDec 21, 2016
With this PR in table |
rdeutz commentedJan 4, 2017
I have tested this item 🔴 unsuccessfully on939278c This comment was created with theJ!Tracker Application atissues.joomla.org/tracker/joomla-cms/13075. |
mbabker commentedJan 4, 2017
I can't say I care enough to dig into why this issue is occurring because zero changes are made anywhere which can cause it. So, sorry for wasting time. |
rdeutz commentedJan 4, 2017
This is the reason why we having tests, to find the issues that can't occurring because nothing is changed |

Uh oh!
There was an error while loading.Please reload this page.
Summary of Changes
This is only the changes for the database session storage from#10905
JSessionStorageDatabase::write()depends on the application having inserted a record into the#__sessiondatabase table to work correctly, the method is changed to query for the presence of the record first and to be able to insert it if not already presentread()method should always return a string, so if an exception is caught inJSessionStorageDatabase::read()we'll return an empty string instead of a boolean false nowTesting Instructions
Sessions using the database storage should continue to work correctly
Documentation Changes Required
N/A