diff options
Diffstat (limited to 'php/register.php')
-rw-r--r-- | php/register.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/php/register.php b/php/register.php index ef1f238..1d31a91 100644 --- a/php/register.php +++ b/php/register.php @@ -31,4 +31,8 @@ if($database->register_user($username,$password,$email)) echo "didn't register"; } + +$_SESSION['username'] = $username; +header('Location: /'); + ?> |