Implemented secure session start function.