V
V
Voll.2016-05-10 17:48:09
Laravel
Voll., 2016-05-10 17:48:09

How to make authorization while the tab is open?

There is a standard authorization system in Laravel. It is necessary to make it so that when the tab is closed, the session is broken, and it is required to re-enter the username and password.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Uwe_Boll, 2016-05-10
@vollthegreat

on js
1) you catch the closing event of which thread
2) you send a request with Ajax
3) you process it on the server
4) session_destroy();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question