Extensible custom session handling and modular session storage