Moved sessionId back to private variable.
Fix scoping for adminMode.