Using sessions & session variables in a PHP Login Script
        Posted  
        
            by 
                user1325291
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1325291
        
        
        
        Published on 2012-04-10T23:24:18Z
        Indexed on 
            2012/04/10
            23:29 UTC
        
        
        Read the original article
        Hit count: 282
        
I have just finished creating an entire login and register systsem in PHP, but my problem is I haven't used any sessions yet. (Like, there's not the word "session" in the entire script). I'm kind of a newbie in PHP and I've never used sessions before. What I want to do it, after the user registers and fills out the login form, they will still stay on the same page. So, like one half of the page will be if the session is logged_in and the other part will be else (the user is not logged in so display the login form). I also want to create session variables which will hold the username and password given at login. Thanks in advance!
BTW this is my website - CP Cheats
© Stack Overflow or respective owner