modify sessionoptions