session problem |
02-11-2015, 06:59 AM
(This post was last modified: 02-11-2015, 07:01 AM by sintakonte. Edit Reason: typo )
Hey guys,
i could need some advice - because i'm experiencing a randomized session error from time to time and i don't know whats going on; Whats the matter: I'm losing from time to time my session My Environment:
PHP Code: $config['sess_driver'] = 'redis'; Error / Debug Messages from the log.php Code: DEBUG - 2015-02-11 14:30:28 --> Total execution time: 9.1220 I can reproduce the error - because it seems its related to ajax calls (but not all, just a few) And only those where the execution time is really long (because of other SOAP webservices etc.) Any advice is much appreciated; If you need more info - pls let me know; thx in advance
https://github.com/bcit-ci/CodeIgniter/c...94316b4e57
However, I'm not sure if anything could be done about long execution times ... Emulated locks, such as those that we do for Redis, can't be held forever and there has to be some time value associated with them. I'd reconsider my approach if any page load takes more than 5 seconds, especially for AJAX calls.
thx Narf
about reconsidering the approach - i've no choice, my APP depends on other SOAP Services and this Navision Webservices are not in my hands right now ...
That you don't have control over the remote service is not the problem ... I'd ask the following questions:
- Do those SOAP calls really need to be executed during a page load? - Does the session have to be active during those SOAP calls? (you can open, read & close beforehand) - Do you really need to use Redis for session storage?
Added notes to the docs: https://github.com/bcit-ci/CodeIgniter/c...56c8db3e64
|
Welcome Guest, Not a member yet? Register Sign In |