add session and cookies funtionalites