Page 1 of 1

Littel help!

Posted: Mon Jan 10, 2011 2:21 am
by autonomous
Hi every body :)
Am working on my college's project, which is online exam website.
I have implemented the login page where the users must register and then login into the site.
the problem is if the user enter the URL of the pages that should be accessed after login page, the page will run. :(
Is there any method rather than sessions to protect that pages ???

plzz help me !!

Thanks,,, :wink:

Re: Littel help!

Posted: Mon Jan 10, 2011 8:47 am
by jankidudel
Why won't you put authentication form on this page also ? :D

2 option is here http://php.net/manual/en/features.http-auth.php

Re: Littel help!

Posted: Mon Jan 10, 2011 9:59 am
by autonomous
jankidudel wrote:Why won't you put authentication form on this page also ? :D

2 option is here http://php.net/manual/en/features.http-auth.php
Thanks 4 reply but, I have many webpages which come after the login page so, It may b diffcult to do form authentication 4 all.

Re: Littel help!

Posted: Mon Jan 10, 2011 10:52 am
by social_experiment
Create an 'auth' page and include it on every page. When a user accesses a page and is not logged in, they get redirected back to the form and asked to login.( An 'auth' page checks if a user is logged in by checking if certain conditions are met, condition which are set on successful login.)

Re: Littel help!

Posted: Fri Jan 21, 2011 4:10 am
by autonomous
Thanks bro :D