fixed setting of session
fixed setting of session