I m new to PHP and i want to learn the ways of maintaining the user sessions and login logout sessions in PHP. thanks
To maintain the session, simply type session_start(); at the top of all your scripts.. To login/logout, set a special session variable at login, for example $_SESSION['user_id'] = $row['user_id']; //from db, then check to see if the user is logged in or not based on whether that variable is empty. Anyway, there's probably loads of tutorials if you do a google search.