RapidX - 2013-10-02 08:16:09
Because i execute my url e.g. 127.0.0.1/login.php?mod=Login
Where login.php has this
<?php
require_once 'secureSession.php';
session_start();
if(isset($_GET['mod']) && $_GET['mod'] == "Login")){
require_once('header.php');
require_once('body.php');
require_once('footer.php');
}
?>
Within the body.php, I've to check if the user is logged in already, and by your example it would be done by
$ss->check();
But it would then have stated that the session_id has already been generated. So would it be then safe to modify the code to this?
if(!isset($_SESSION['ss_fprint'])){
$this->_RegenerateId();
}
Appreciate your answer!