Finished up the secure sessions implementation.