Added updateSessionOptions function to res for updating session options.