News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Building a Logout Class
September 05, 2007 @ 12:36:00

DevShed has posted a new tutorial today about building another common component of a website - the logout component.

The main function of the logout class is to log out a user and then redirect the user to the login page. On a programmatic level, the logout class terminates and destroys the session variables that the login class created for the user and also logs the exit time to the database. This article will show you how to create a logout class. It is part of a series on application framework components.

They build out the simple part of the class first, handling the variables and all and then move on to handling the logout and updating the database to reflect the user's status. They finish the tutorial off by giving both the database structure for the component and an example of it in action.

0 comments voice your opinion now!
devshed logout class tutorial database login devshed logout class tutorial database login


blog comments powered by Disqus

Similar Posts

William Durand: REST APIs with Symfony2: The Right Way

Aaron Pollock: Setting up a PHP development environment on a VPS

Developer Tutorials Blog: Digg Clone: Start your own Digg in five minutes flat with PHP

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 7)

The Bakery: Simple way to memcache (almost) all database queries


Community Events





Don't see your event here?
Let us know!


introduction composer language community interview api unittest voicesoftheelephpant laravel podcast extension series configure release install symfony opinion conference version list

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework