1
I am trying to create a user area on my site with PHP and Mysql, so far I have managed to make the login system and a private page for clients.
The question is how I could make a single page available for each customer?
My goal is to provide unique download links to each user so that another user can not access, I will do it from Google Drive, but I do not know how to show links exclusively to each customer (I even tried to insert the links into the database and show them with echo but it would prevent me from customizing them with CSS and HTML afterwards).
Follow the code I want to implement:
<?php
include_once ("setting.php");
@session_start ();
$nome = $_SESSION ['nome'];
$usuario = $_SESSION ['usuario'];
if (!isset($_SESSION['nome']) && !isset($_SESSION['usuario'])){
header('location: login.php');
exit;
}
?>
I think that’s really what I was looking for, I’ll test it here, thanks for the suggestion!
– Wel