Create the session during ajax call (php-xajax)
问题 i need to avoid the creation of the session in the application unless it is completely necessary. I have noticed that xajax calls dont work properly if the session is not started :(. My first approach was to create the session (if it doesn't exist) at the begining of the xajax function, however, it doesn't work the first time the user invokes the call (it works the second time since the session was created). There is any way to handle/fix this situation? Edit: an example code: function