Comments (5)
The SET timestamp
query is not from Zebra_Session. Other than that, the queries look fine to me but they take too long...Is there a HUGE amount of rows in the session
table? (although, that shouldn't lead to this behaviour).
If you say that there are more GET_LOCK
statements it may be that they are failing; replace the die
statement in line 470
with error_log
to see if that is the case; if this is indeed the problem then it is because you or your users are authenticated, in the same browser, with the same account, multiple times and doing things that take a lot of time to complete; during this time the row is locked and other sessions (same accounts, different tabs) will be unable to get these locks and will hang.
that's all I can come up with, for now.
from zebra_session.
SET timestamp I'm assuming is from MySQL internals for slowquery.log, so I think we can ignore that. There are currently 6,465 rows in session_data. I'll try your suggestions first.
from zebra_session.
I'm now using
error_log('Zebra_Session: Could not obtain session lock!', 1, '/path/to/zebra_log');
(given Apache write access)
And I've also tried
error_log('Zebra_Session: Could not obtain session lock!');
And neither the error_log nor zebra_log ever have any data written to them. Yet I still do see the entries in the mysqld slowqueries.log.
I've tried logging into the app myself and opening many different tabs to try to reproduce the problem, but I've never seen it myself as a result of anything I can do.
There aren't many other slow queries that show up in that log other than the ones produced by the session library, and the load is low enough that something like high processor or memory usage would cause them.
Any other suggestions?
from zebra_session.
I have a system that will be used with similar/same browsers and same accounts.
Will there be problems ?
from zebra_session.
This is most likely because of #16 and therefore should now be fixed
from zebra_session.
Related Issues (20)
- explanation request HOT 1
- session data missing after renew session in database HOT 1
- this session class can be deleted! HOT 26
- Empty Session HOT 13
- Are there any reason you don't use SessionHandlerInterface class? HOT 1
- Can't connect Zebra Session with PDO? HOT 7
- transition to PDO ? HOT 11
- If calling die(), will the session get closed/lock get released or not? HOT 2
- Question: session_id($id) does not change sid HOT 1
- get_lock doesn't work HOT 3
- Logging Out Users HOT 6
- keep session even if browser is close HOT 1
- How to show alert when session is expired? HOT 14
- zebra_session could be use in AWS ALB? HOT 2
- session_start gives an unkown error HOT 2
- Session Lifetime of 0 (zero) Behaves Differently on PHP 8 - Expires Immediately HOT 5
- Divide by zero error when calling get_settings() HOT 1
- session_set_save_handler signature changing in PHP 8.4 HOT 1
- PHP 8.2 throws deprecation notices for two dynamic properties HOT 1
- $session->set_flashdata() not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zebra_session.