A basic session management system I wrote in PHP a couple years ago.