Commit session before HTTP redirection