accesscheck session
Hi Ray
The usual login behaviour makes use of the session 'accesscheck' to redirect people to the previous page in the admin area after successful login.
I haven't been able to use this, as I require a separate page (loginstats) which creates lots of other session variables before access to the admin area.
I've tried creating the session on the login page based on the accesscheck parameter in the URL , then adding a redirect to loginstats. However, the Session variable isn't being created on the login page.
Code:
<?php
@session_start();
if(!isset($_SESSION["accesscheck"])) {
$_SESSION["accesscheck"] = "".$_GET['accesscheck'] ."";
}
?>
Cheers
Chris