Rather than reinvent the wheel, I looked for a PHP MySQL-backed session handler class. I found one from Cheetah-Soft. It even has a web-based installer so you can get a .tar package configured with the options you want.
Possibly Related posts (machine generated):