I have a problem here. I tried to login into one account. Then opening another chrome session not another tab the previous session gets this session value and everything reset to current account value. How avoid this problem? This is how I do in my login page. MY server is Centos.
$_SESSION['enterpriseID'] = $row1['enterpriseID'];
$_SESSION['userID'] = $row1['userID'];
$_SESSION['userName'] = $row1['userName'];
$_SESSION['enterpriseName'] = $row1['enterpriseName'];
$_SESSION['enterpriseID'] = $row1['enterpriseID'];
$_SESSION['enterpriseLogo'] = $row1['enterpriseLogo'];
$_SESSION['timeZoneOffset'] = $row1['timeZoneOffset'];
$_SESSION['positionID'] = $row1['positionID'];
Sample code is as below.
Update tblAST Set
astStatus='m',".
employeeIDEnd=".$_SESSION['userID'].", ".
dateTimeEnd=now() ".
Where astID=".$astID;