hi all

new to php .....
how to protecte links on userpage when he login successfully.
i want that out side user who not logged in ,can not see page after copy those links in browser.any example.

thanx in advan......

Look into using sessions for authentication. Basically the idea is:

<?php
session_start();
if($_SESSION['loggedIn']==true){
echo "This content will only be viewable for users who are logged in";
}
else{
echo "You are not logged in";
}?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.