Hybrid local - distant session system for PHP