Revert to original method of session cookie setting