I have a login form that stopped working right after enabling SSL, and I have no clue why.
Part of my code below:
Verification if correct login
if($is_active == '1') {
if($username == $user && $password_signin == $password) {
header("Location: https://website.tk/index.php");
$_SESSION['id'] = $id;
$_SESSION['level'] = $level;
$_SESSION['user'] = $user;
} else {
Login form:
<form class="user" action="" method="post">
<div class="form-group">
<input type="text" class="form-control form-control-user" id="user_signin" name="user_signin" placeholder="Utilizador...">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user" id="password_signin" name="password_signin" placeholder="Password...">
</div>
<button type="submit" name="login" id="sign_in" class="btn btn-primary btn-user btn-block">Login
</button>
<hr>
</form>
I was working before enabling SSL on the website when I log in it does not show any error just looks like it is not setting the SESSION variables