Click to See Complete Forum and Search --> : php Mysql Folder


kproc
04-19-2006, 12:14 PM
Hi

I have set-up register / login Page on my web site. All us working and I can add links etc to the login confirmation page etc. how do I make a folder with pages that can only be accessed when login.

The why It works know is it I type in the full ULR the page will open.

ablaye
04-22-2006, 10:00 PM
In the folder you created, add an index.php file that contains code which checks that a user is logged in. If the user is not logged in, you can display the login box.
You would need to do this for all pages in that directory. Basically all the files in that directory should contain code that checks a user is logged in.

kproc
04-23-2006, 09:25 AM
I could you session () to recall the username and if the person is not loggen in then sent them to the loggin page. am I thinkinbg along the correct line