News Feed
Sections




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

Chris Shiflett's Blog:
PHP Session Debugging
March 28, 2011 @ 09:53:07

In a new post to his blog today Chris Shiflett takes a look at something a lot of PHP developers take for granted, the language's session handling, and some things you can do to help debug them when things go wrong.

For many PHP developers, calling session_start() and using $_SESSION for stuff you want to persist from page to page is all there is to know about sessions. This is understandable, because PHP's native session support is so simple and reliable. But, what if something goes wrong?

He points to two older articles he's written about some more advanced session handling and includes sample code acting as a walk-through for locating your problem spot. He focuses in on the read() handler method and shows how to debug the data flowing in and out (and some of the information he commonly logs from it).

0 comments voice your opinion now!
session debug tutorial handler custom


blog comments powered by Disqus

Similar Posts

Enrico Zimuel's Blog: Convert a spool file to PDF using PHP on i5/OS

DevShed: Introducing SimpleXML in PHP 5

Robert Basic's Blog: Using the new autoloaders from Zend Framework 1.12

Matt Cockayne's Blog: Zend + TinyMCE

DevShed: Building an Error Logger with the Chain of Responsibility Pattern in PHP 5


Community Events

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


introduction symfony2 opinion conference api xdebug interview library podcast performance example release laravel php7 extension series community voicesoftheelephpant framework version

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