Scriptsmount a free web scripts directory provides website scripts, webmaster scripts, web directory scripts, directory scripts, php scripts, perl scripts, cgi scripts, html scripts, database scripts, asp.net scripts, form scripts, guestbook scripts for webmasters
Web Scripts :: PHP :: PHP Tips and Tutorials :: User Authentication
13.
Simplest, and Most Secure: HTTP Authentication
|
|
This is a short tutorial that explains how you can protect a web page from users. The code in this tutorial is only about 5 lines long, and will protect any PHP page. HTTP Authentication involves the browser displaying a window for the user to log in, once the user logs in the page is displayed. If the user fails to log in, a failure notice is displayed
Hits: 10 Rating: 0.00 Votes: 0
[Detail]
[Send URL]
Category: PHP :: PHP Tips and Tutorials :: User Authentication
|
18.
Maintaining state with PHP4 sessions
|
|
HTTP as a protocol is stateless, which doesn't make it easy for a developer. For example, your web server sends out a page to someone ordering from an online shop, and then forgets all about it. A few seconds later, the same person sends another request, ordering another item. As far as the web server is concerned, it could be an entirely different person. So to make sure the right orders are associated with the right person, a developer has to employ some sneaky tricks. Before PHP4, you could have used something like PHPLIB for session management. But PHP4 comes with a complete set of sessioning functions. This article explains how to use them.
Hits: 40 Rating: 0.00 Votes: 0
[Detail]
[Send URL]
Category: PHP :: PHP Tips and Tutorials :: User Authentication
|
|
|
|
|