Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- //Load the account class file
- require($_SERVER['DOCUMENT_ROOT'].'/assets/class/account.php');
- //Retrieve the submitted values
- $username = $_POST['username'];
- $password = $_POST['password'];
- $remember = $_POST['remember'];
- try {
- $login = new login($username,$password,$remember);
- if($login) {
- echo 'successfully logged in <br /><br />Session ID: ';
- echo $_SESSION['knoxius_account'].'<br />Cookie: ';
- echo $_COOKIE['knoxius_account'];
- }
- }
- catch(Exception $error) {
- echo $error->getMessage();
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement