How to save URL parameter for pages

I will not be the developers who embed my webapp to be able to pass a parameter to the url, for example ?style=dark, which will change css accordingly. Is there a better way to keep this setting when the user navigates to adding ?style=darkto all links?

I looked at cookies, etc., but if one user views two pages in which my application with different themes is embedded, then you will override the other.

I am using Python / Django.

+3
source share
3 answers

Cookies URL-, , :

: . www.example.com h ** p://THEME.example.com/PATH. HTTPS, SSL- *.example.com.

Basic-Auth-Handler, . URL- :

** ://THEME@www.example.com/PATH

, , Basic-Auth. , . , auth-, Anti-Phishing .

, . , , SSL- *.example.com PARAM1.PARAM2.example.com.

+2

, . , , ?style=dark href, rel="dark" <a> javascript. ,

, , , .

0

I'm sure you can use a session for this kind of thing, and not? The first time values ​​are provided through Querystring, you add them to the session and then retrieve them from the session in the future.

0
source

Source: https://habr.com/ru/post/1771616/


All Articles