CI 3 Release Candidate having huge problem in session |
Hi,
I am using codeigniter 3 RC in my chatting system project. After upgading from CI 3 development version session driver not working as expected. My configuration is database.php Code: 'pconnect' => TRUE, and config.php Code: $config['sess_driver'] = 'files'; There are huge ajax request in my app which are executing simutaneously. Now my problems is ** site working very slow after upgrading to CI 3 (RC) specially in ajax page's I have tried using database driver instead of files, yet perfomance not improved appreciate any help
The largest Bengali tutorial site on Web Development in this planet
After a Research finally FOUND the solution:
session_write_close(); the tricks. For long poll its need to close the session using session_write_close(); it will only close the active session but not destroy any session data
The largest Bengali tutorial site on Web Development in this planet
The sessions reference (http://www.codeigniter.com/userguide3/li...sions.html) mentions that you shouldn't use a persistent connection. I haven't looked into the reasoning why, but that could be a possibility as well.
Ignore that post, not enough coffee and too tired to realize you weren't using the database method for session saving. apologies.
(02-01-2015, 11:14 PM)rejoan Wrote: After a Research finally FOUND the solution: Are you calling this manually in your own code or did you modify the built in session library? You should send a PR if it's the latter. (02-03-2015, 12:03 PM)spjonez Wrote:(02-01-2015, 11:14 PM)rejoan Wrote: After a Research finally FOUND the solution: in my code. but session documentation should mention that "must use session_write_close() when u have ajax long poll otherwise application will not work properly"
The largest Bengali tutorial site on Web Development in this planet
(02-03-2015, 12:03 PM)spjonez Wrote:(02-01-2015, 11:14 PM)rejoan Wrote: After a Research finally FOUND the solution: No, please don't. (02-03-2015, 11:13 PM)rejoan Wrote:(02-03-2015, 12:03 PM)spjonez Wrote:(02-01-2015, 11:14 PM)rejoan Wrote: After a Research finally FOUND the solution: It will be slow for for what you're trying to do with it, but not improper. (02-04-2015, 05:58 AM)spjonez Wrote:(02-03-2015, 11:13 PM)rejoan Wrote: in my code. but session documentation should mention that "must use session_write_close() when u have ajax long poll otherwise application will not work properly" No. Its comet
The largest Bengali tutorial site on Web Development in this planet
|
Welcome Guest, Not a member yet? Register Sign In |