[HELP]dont allow Anonymous users

Hello i’m trying to figure out how to make people use their acc that they registered in my database to see the content in my website so if they click on gallery or anything else it will say please login first any help? please

how do u handle the login?

u would just have to use something like:
[php]if(!$_SESSION[‘user’])die(‘please login’);[/php]

of case ‘please login’ should be html with a link, or better containing the login form.

thanks alot so i will just have to add this to the php of the link i want? this is my web look http://teno.no-ip.org/website/ as you can see to go to webshop and download you dont have to login

oh wow it worked thanks alot really appreciate your help now for sure i donate to this forum

Sponsor our Newsletter | Privacy Policy | Terms of Service