php custom error handling -
i have question you.
on site have following error report level
// php errors reported when script run. error_reporting(0);
problem when session times out blank page , user has type address again go main page , log on.
is there way embed link above code when session times out echo link main page?
i tried
// php errors reported when script run. error_reporting(0); echo ("index.php");
with no luck, ideas?
thank you. :)
your session checking code should http redirect login page if user's session has expired.
session_start(); // check if user logged in if (!isset($_session['current_user'])) { header("location: http://example.com/login"); exit; } // code run when user logged in ....
Comments
Post a Comment