Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- session is not woking in my login script
- <?php
- session_start();
- include '../../classes/check.class.php';
- include '../../classes/user.class.php';
- $check = new Check();
- $user = new User();
- $email = $_REQUEST['txtEmail'];
- $password = $_REQUEST['txtPassword'];
- $userid = $check->validateUser($email, $password);
- if($userid){
- $_SESSION['userid'] = $userid;
- $url = '../../index.php';
- header("Location: $url");
- }else{
- header("Location: $url");
- }
Add Comment
Please, Sign In to add comment