lundi 28 septembre 2015

Laravel 5 Asyncronous AJAX requests cause session problems

I am using Laravel 5 ("laravel/framework" version is " v5.1.16", Homestead Ubuntu), with session driver = 'file'.

I noticed that if a number of async AJAX requests (jQuery) are fired eg. in autocomplete search form field then the session variables are gone.

This happens, only with async AJAX requests, when async option is set to false this problem no longer exists.

Also, when session driver is set to 'cookie' and async set to true there is a new cookie created on each AJAX request, so with 10 requests there will be 10 laravel cookies etc.

Any suggestions? I have failed to find any decent cause or solution to this, except not using async requests.

Related issues, which seems to be fixed.

http://ift.tt/1Vm7I1i

http://ift.tt/1L0jGfF



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Vm8Fqn
via IFTTT

Aucun commentaire:

Enregistrer un commentaire