Forum Moderators: coopster

Message Too Old, No Replies

PHP Login & Logout scripts

         

Ananthi

7:59 am on Feb 9, 2007 (gmt 0)

10+ Year Member



Hi

could anyone suggest me a simple and good login/logout scripts.

eelixduppy

11:57 am on Feb 9, 2007 (gmt 0)



Hello Ananthi,

We have a very nice thread on Authentication [webmasterworld.com] that discusses the topic in detail. I suggest that you take a look there to learn the basics. If you have any trouble on the way, feel free to ask them right here. :)

Good luck!

bysonary

10:32 pm on Feb 11, 2007 (gmt 0)

10+ Year Member



Look into session variables, its the best way to do it then at the top of each page you want to authenticate just include an auth file that checks if $_SESSION['Authenticated']!= True if it isnt then it requests a login if it is then direct to the protected page, its really that simple.

There are lots of pre written scripts around all of which are a bit too big and drawn out for my liking if all you want is a simple easy to implement login system spend an hour or two reading up on session variables.