简体   繁体   中英

Multiple User Section [more than one page]

I'm starting a session and redirect after successful login to a home.php

now my question is how can i let access the users more pages. i thought about:

<?php

    session_start();

    if(isset($_SESSION['user_session'])!="")
    {
        header("Location: home.php");
        header("Location: home2.php")
    }

    ?>

this page should only useable to the users.



When the user is at home.php i thought about a simple <a></a> redirect with html to home2.php

Create a session and make an <a></a> Tag that only registered useres can see. You have to session_start() in every site and Theo redirect if the User is already logged in

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM