Jump to content

[SOLVED] Set login requirement to pages


jeyjack

Recommended Posts

Hi,I want to set a log in requirement to some pages..

the pages are these below:

 

http://www.prestigeparty.it/photogallery.html

and this one

http://www.prestigeparty.it/prestigegallery.html

 

this should be the page for logging in:

http://www.fabriziozoccolo.altervista.org/register.php

and I want to let them be able to regiser too,if they aren't memebers yet

 

I hope you can help me  ;D ;D

Thank you so much!

Link to comment
Share on other sites

Shouldn't this be in PHP Help section?

After a person logged in their account, you set a session let's say $_SESSION['login'] = 'ok', then on your protected page check if that session value was 'ok' if not send them back to login page.

 

Next time please search before asking this question.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.