Programming

  • 7 {{ upvoteCount | shortNum }}

    session help

    solidsoul in Programming

    I have this little script I'm trying to simply logout here it is.. PHP Code: <?phpsession_start();  include("connect.php");$username1 = $_SESSION['username'];if (!isset($_SESSION['$username'])) {     echo "Sorry Your Not Logged In" . $_session['username'];    exit();     }else if (isset($_GET['logout'])) {session_destroy();echo "You Have Been Successfully Logged Out";    }  ?> ok so what I'm saying is if the session isn't set would mean they ... [read more]