I have a problem that I have turned around but I do not get an adequate solution. I am using Laravel 5.8 and I have a system that has a menu that shows certain links I show you an image:
That menu has links that load in the center part of the dashboard using an iframe. I show you another image:
I am working with sessions and I have a stipulated time so that once the session cookie expires I will not let any part of the website show them a route where I am configuring the middleware with the session control:
Route :: resource ('users', 'UserController') -> middleware ('auth');
My mistake is that when the cookie expires, the page reloads within the iframe I show you an image:
What do I want to achieve? I would like to ensure that if I click on one of these links, the login will not load within the iframe, but rather that the entire site will be reloaded and take me to the main page or, failing that (which would be the best) than if the session I expire, the site will refresh itself and take me to the main login page.
I tried to do something with jquery using the event to capture the movement of the mouse and when it does not move in conjunction with creating a new cookie to be able to manipulate it, since I wanted to determine if the session cookie existed to refresh the page but how these cookies are encrypted I can't manipulate them but it didn't work out very well. I hope you can give me some other idea. Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire