Hi all, im bettling with creating a PHP login page, if i use re-direct from a login page all the session variables will be cleared.
Is there a better way to do this.
<code>
$_SESSION["myusername"] =$username;
$_SESSION["credit"] =$credit;
$_SESSION["companyid"] =$cid;
//echo "success";
header("Location: loginsuccess.php");
</code>
Is there a better way to do this.
<code>
$_SESSION["myusername"] =$username;
$_SESSION["credit"] =$credit;
$_SESSION["companyid"] =$cid;
//echo "success";
header("Location: loginsuccess.php");
</code>