diff options
author | adam <adam@> | 2021-02-11 19:43:06 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-11 19:43:06 +0200 |
commit | d538c3041c6c7d05a9328ace960838aa194879d9 (patch) | |
tree | 0b070027c9e758ed1783012c43c58070b39595f5 /php/login.php | |
parent | d35678c131d4547cea8b3d9fcc1978dec0d2d903 (diff) | |
parent | f1cd0085cd8dba8b25818fc998d315b28e6c13a5 (diff) | |
download | fileup-d538c3041c6c7d05a9328ace960838aa194879d9.tar.gz |
setting up
Diffstat (limited to 'php/login.php')
-rw-r--r-- | php/login.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/php/login.php b/php/login.php index e6d44dc..536a5bf 100644 --- a/php/login.php +++ b/php/login.php @@ -3,6 +3,8 @@ require_once "user.php"; require_once "database.php"; require_once "misc.php"; +session_start(); + $username=$_POST["username"]; $password=$_POST["password"]; /*server side verification*/ @@ -18,8 +20,7 @@ if(!$user) die("Password or username is incorrect"); } -echo "Username: {$user->username}\n"; -echo "Email: {$user->email_address}"; - +$_SESSION['username'] = $user->username; +header('Location: /'); ?> |