User tests: Successful: Unsuccessful:
This is only the changes for the database session storage from #10905
JSessionStorageDatabase::write()
depends on the application having inserted a record into the #__session
database 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 in JSessionStorageDatabase::read()
we'll return an empty string instead of a boolean false nowSessions using the database storage should continue to work correctly
N/A
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
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 (see symfony/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.
with this patch applied when using shared sessions i cannot logout
Not a clue. Nothing in the database session handler is client aware, including shared sessions.
Found it. The issue is unrelated to this patch.
See #13273
The branch at https://github.com/mbabker/joomla-cms/tree/logout-database-sessions combines these two PRs for convenience.
I have tested this item
Tested both #13273 and #13075 applied in the patchtester.
Tested with shared and non shared session both login and logout from admin and site client
all worked fine. so works as described
I have tested this item
The same as above.
Tested both #13273 and #13075 applied in the patchtester.
Tested with shared and non shared session both login and logout from admin and site client
all worked fine.
Milestone |
Added: |
Milestone |
Added: |
||
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
One warning.
When I have applied this PR then on backend "Logged-in Users" module does not work.
Session on database, not shared and shared session.
Can anybody confirm?
When I have applied this PR then on backend "Logged-in Users" module does not work.
Session on database, not shared and shared session.
Can you double check that you have the very last chnages from staging?
I have checked again and the same result.
Applied by patch tester and by git as:
curl https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/13075.diff | git apply
After I applied then Logged Users module is empty after relogin as admin.
When I do checkout and relogin then module show me again.
With this PR in table #__sessions
username and guest column is always empty.
I have tested this item
Same result as @csthomas after logout and login the "LOGGED-IN USERS" List is empty
Status | Ready to Commit | ⇒ | Pending |
Labels |
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.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-04 20:15:39 |
Closed_By | ⇒ | mbabker |
This is the reason why we having tests, to find the issues that can't occurring because nothing is changed
@mbabker is there any noticeable improvement in the response times?