Commit session before redirection
Merge pull request #79 from kakawait/session_cookie_support

Commit session before redirection