renamed method for setting session handler