1
I have a system that uses Session
which expires with inactivity. Access to files in the system is only released after the session is opened. Until then beauty, is working. I would like to remember the link that was typed in the browser URL (address bar) for example http://sistema.empresa.com.br/public/anexo/documentox.pdf. I made a code here, but it does not return me to the expected result. It returns to the folder "public". You would have to store in the $url_browser variable, the exact string of the address bar. Follow the code.
$url_browser = $_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
//aqui executa o processo de login...
header('Location: ' . $url_browser);
Thanks for the help.
– Eduardo Santos