I have a little doubt about how sessions should be handled.
Now I have a MySQL database, where in the table "users" there is a session_id field. If NULL, the user is not logged in? If the value matches the cookie value PHPSESSID, then the user is logged in.
I don’t know why, but somehow I feel that it’s not good enough to see who I am dealing with. Is there something I'm missing, or are my fears unfounded?
There is nothing significant in what you describe as far as I can judge.
, . ( ..). , . , .
, , " " , , , , . , -, , , - , - (, , 15-30 PHP) , X .
- 1 . , , :
sess_id | sess_userid | sess_ipv4 | sess_lastseen (datetime/timestamp) | sess_sessionid (varchar)
, , , IP-, , , .. , .
, !
, , , ( 15 ?) ., - , , id .
Source: https://habr.com/ru/post/1760911/More articles:How to create a schema for composite types? - xmlУстановка CSS-класса родительского меню из дочернего меню с использованием PHP/WordPress - cssEclipseRT / Virgo does not appear in the list of Eclipse server adapters - eclipseTemplate for decimal format - javaGet the IP address of the current Wi-Fi access point on iPhone? - iphoneNested STL Vector Using Too Much Memory - c ++преобразование простой разбивки на страницы в javascript в код jquery - javascript16-битные изображения и обработка андроидов - androidWhat does instance () do in Python assignments? - pythonSpring MVC AbstractWizardFormController Question - springAll Articles