<?php session_start(); if(is_array($row)) { $_SESSION["id"] = $row['id']; $_SESSION["username"] = $row['username']; } else { $message = "Invalid Username or Password!"; } } if(isset($_SESSION["username"])) { header("Location:main"); } ?>
Select allOpen in new window