It seems to be a small and easily solved problem, but I can not find any solution for it.
I want to log in for users of this session only while you are browsing the site. As soon as they close the tab, I want their session to expire. As far as I know, I cannot do this in an inline class Auth.
Auth
How can I do this efficiently?
Short answer: YOU CAN'T
, , expire_on_close config/session.php ( , cookie , ):
expire_on_close
config/session.php
'expire_on_close' => true,
, . , , JavasSript onbeforeunload, . , "", .
onbeforeunload
"" , , , , , , , .
PHP , /, .
: PHP
Source: https://habr.com/ru/post/1616236/More articles:How to draw bones in java? - javaWhy are there no compatible JREs in the "Runtimes" section, although I added the JDK? - javaDisplay last inserted data in .NET Compact Framework application - sql-serverDownload and save the file to your local browser storage - javascriptsbt: publishing generated sources - scalaFindIterable как получить итоговые записи в результате запроса - javaОграничьте одновременные запросы, обслуживаемые веб-интерфейсом ASP.NET - asp.netFilling a temporary array to avoid using Preserve in a dynamic multidimensional array - arraysLock player controls and metadata - javaCheck if property exists using React.js - javascriptAll Articles