Support the ongoing development of →
Input Session Validation
Last updated 2 years ago.

I have found the problem,which is i have this javascript which makes multiple requests to the server to check if the user is still logged in

   (function worker() {
            url: '{{URL::route('check')}}',
            success: function(data) {
                if(data === 'false') {
                    window.location.href = '{{URL::route('login')}}'
                }else {
            complete: function() {
                // Schedule the next request when the current one's complete
                setTimeout(worker, 200);

the requests cause session persistance to fail!! How do i fix this?


Sign in to participate in this thread!


Your banner here too?

Malouda malouda Joined 11 Dec 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.