Bug #72664 [Nab]: accessing session is very slow when ajax request

From: Date: Sun, 24 Jul 2016 19:14:27 +0000
Subject: Bug #72664 [Nab]: accessing session is very slow when ajax request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202561@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72664&edit=1 ID: 72664 Updated by: yohgaki@php.net Reported by: saravanan dot swaminathan at kgfsl dot com Summary: accessing session is very slow when ajax request Status: Not a bug Type: Bug Package: Session related Operating System: Linux PHP Version: 7.0.9 Block user comment: N Private report: N New Comment: Beware that improper parallelism causes session data inconsistency. e.g. Open&Read session data and write&close session. Later on, session data is needed to be updated, so open&read and write&close again based on state that script is running. This kind of code may cause race condition (= inconsistency depends on execution order/state/etc) Previous Comments: ------------------------------------------------------------------------ [2016-07-24 19:08:42] yohgaki@php.net Session data is locked while it is accessing. i.e. Access to resources is serialized. If you would like to speed up, increase parallelism by using read only access (available since 5.6) or commit (session_commit) as soon as you don't need to update it. ------------------------------------------------------------------------ [2016-07-24 15:24:12] saravanan dot swaminathan at kgfsl dot com Description: ------------ If I write data into session through ajax request, it takes more than 1 minute. If I trigger other javascript functions through other control, it return response quickly. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72664&edit=1

« previous php.bugs (#202561) next »