Setting cookie for application.