Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
i have a web site eg :- www.mysite.com

i want anyone to get into the site only after giving username and password. So i added login page, registration page etc. I am using php with mssql server. I am new to web related technologies. Now i need help, on how to redirect from home screen when someone directly tries for the home page. Please guide me through all the settings and elements required to achieve the same. Please refer any tutorial or web material explaining the same. thanks jim
Posted

1 solution

It's always good to study the topic at least basically, before (instead?) asking such questions:
http://www.php.net/manual/en/features.http-auth.php[^],
http://www.homeandlearn.co.uk/php/php14p1.html[^],
https://github.com/PHPAuth/PHPAuth[^].

Besides, I'm not sure if you want to have your own password-based authentication, or want to authenticate the user through a third-party identity, as with as with OpenID, so consider this approach, too, or, even better, combine it with your own authentication, like many sites do. Please see:
https://en.wikipedia.org/wiki/OpenID[^],
http://openid.net/[^],
http://openidexplained.com/[^].

Then you can use, for example, https://github.com/openid/php-openid[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900