An example PHP and MySQL implimentation of SSO by gibut.