session_abort — Discard session array changes and finish session no link would pass the SID anymore, causing every script to return to the login page. my code or some misconfiguration in php.ini and then still some more time to find out .