Session Commit

Improved session and cookie handling