How to store user agent data?

When we discover these items for visitors:

  • Browser name
  • Browser version
  • OS Name
  • OS version
  • Screen resolution
  • Screen depth
  • Flash on
  • ...

Should they all be stored in a database in separate columns, or should I store all this as a user agent string and then split it in the application?

And should one be used varchar(255)for this to be safe, or are there certain data types for these elements? I use MySQL and PHP

+3
source share
3 answers

, . , , , " Internet Explorer 6" ..

, .

+2

. .

. .

+2

, varchar(255) . , . + , - , , , ?:)

+1
source

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


All Articles