Session reg

Added a session regeneration thingy.