I'm building a AngularJs app using joomla in background. The AngularJs app get loaded once and then calls the server always through ajax. Some calls happen simultaneously. If I'm using the default PHP session in those calls, php will process one call at a time. So, I wrote my own Session handler to allow more than one call at a time and I would like use that in place of the default php Session. Is there a easy way to do this in Joomla or I will have to write my own JSession class?
<?php session_start(); sleep(10); echo "Hello"; ?>
If you call this file twice in the same browser in the same time, the first call will return in 10 seconds, the second call will return in 20 seconds. The JSession class call the session_start(), so the joomla has the same behavior.
When we use the database option or extend the JSessionStorage with own session handler, joomla use
session_set_save_handler() and it changes the default behavior of lock the session. So, I was wrong when I say that to call session_start involves lock the session.