Session methods in base controller.

Added some methods for sessioning in the base controller.