mercredi 6 novembre 2019

Laravel default auth automatically logout after JS redirect

I use laravel (version 5.8) default auth system. I login in the system https://abdulmabud.com . Then I go to https://www.abdulmabud.com/game30 page. In this page I write below code and it's redirect to the homepage after 30 sec.

  window.setTimeout(function(){


    window.location.href = "http://www.abdulmabud.com";

    }, 30000);

Then I see the I am logout. But when I go via new tab then I see it's logged. What's wrong.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire