Should have explained it better getRequest() contains the request from the browser and it will have the cookies in it that is why we use getRequest when we check if a cookie exist. getResponse() is used when we want to set a cookie
Become a patron - / doingiteasychannel
Take a look at my blog - http://yii-02.blogspot.com/
Follow me on Twitter @Uthpala_419
На этой странице сайта вы можете посмотреть видео онлайн Yii2 Lesson - 49 Setting and Getting Cookies длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Uthpala Heenatigala 13 Ноябрь 2015, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 10,679 раз и оно понравилось 49 зрителям. Приятного просмотра!