session handling for console