H
H
howuu2019-08-26 00:18:43
Django
howuu, 2019-08-26 00:18:43

How to track new Django sessions?

Is it possible, without using db, to track that a new user has entered the site? I want to show users messages that have just entered the site, but if he has already moved to another page or updated the current one, I don’t want to show it, I need something like a new session handler, how can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-08-26
@deepblack

Show the message to everyone who does not have a cookie set, respectively, set it along with viewing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question