myvesta/web/index.php
sfer23 850d215c1f Fix bug with redurant redirect
If I use nginx to assign 127.0.0.1:8083 with one of named VirtualHost - I have error when login by user (Browser redirect me to self domain name with 8083 port, which is already closed).
Also this fix doesn't break anything on default use.
2015-03-03 22:06:56 +02:00

8 lines
139 B
PHP

<?php
session_start();
if (isset($_SESSION['user'])) {
header("Location: /list/user/");
} else {
header("Location: /login/");
}
?>