added loginException handling from nodejs, and set session server path properly