Added cookies, sessions and flash messages