Search options

I have a detailed search form on the start page where the user has many search options available.

What would be the best practice of saving search parameters for a user session. What are the pros and cons if put them in

  • URL
  • Session
  • Cookie

What should be used as best practice.

+3
source share
3 answers

Cookie , URL URL- ; , URL- ( , ). ; ( URL-).

cookie (, ), URL.

- , , , cookie, URL, .

+1

( -, ..). , / .

URL : /
URL-: , , URL-

: / ( ), URL
: ( )

Cookie :
Cookie cons: / , cookie ( ), cookie, (1 cookie )

+1

, . , , , - - .

, , , , , URL.

, cookie -, cookie, / . , cookie , .

, :

  • URL- cookie ( ).
  • GET , .
0
source

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


All Articles