Added several helper functions for sessions flashdata and URI