looking for some solutions? You are welcome.

SOLVED: Authorization in PHP doesn't work1

Herman Futurman:

The page displays this registration and the input works fine, but when I go in, this thing does not change.

enter image description here

indexv3.php

<?php
require "db.php";
require "index.php";
?>

db.php

<?php
require "libs/rb.php";
R::setup('mysql:host=localhost;dbname=project','root','');
session_start();

login,sign up and logout worked, but index.php doesn't work.

<?php if(isset($_SESSION['logged_user'])): ?>
    Hi,<?php echo $_SESSION['logged_user']->login;?>
    <hr>
    <a href="logout.php">Exit</a>
<?php else: ?>
    <a href="login.php">Log In</a><br>
    <a href="signup.php">Sign Up</a>
<?php endif; ?>



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent