Handle session