Fixed issue #5; accidentally collided two different getSession functions.