Taking care of session