A
A
Artyom Innokentiev2015-09-27 19:17:36
Django
Artyom Innokentiev, 2015-09-27 19:17:36

What do you store in Cookies?

There are two questions:
1) What do you usually store in Cookies?
2) What can and cannot be stored in Cookies?
PS . Give an example (if not difficult) of using Cookies in practice.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sim3x, 2015-09-27
@artinnok

user
id csrf token

D
Dimonchik, 2015-09-27
@dimonchik2013

are you taking the exam?
in 2015, cookies have two options:
1) sessions phpfaq.ru/sessions (a paradise for advertisers, google analytics and other "hello, are you from city N?")
2) user settings, changing which cannot harm the site: for example, you cannot store a password or other information there, i.e. , in fact, for the css of the site, "remember the login so as not to enter", etc.
modern boys use cookies like this: socfishing.ru

T
Tlito, 2015-09-27
@tlito

sessions, site settings such as color scheme, the desired type of display of records is
not something that can be saved in the database for this user

I
Ilya, 2015-09-27
@FireGM

I keep information there, whether the pop-banner has already been shown during this minute or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question