![PHP Nette - how to identify an anonymous user (session_id ())](/assets/img/pages/types/23.jpg)
PHP Nette - how to identify an anonymous user (session_id ())
Hello, how to identify an anonymous user in PHP Nette?
This is about me - an anonymous user without registration chooses, for example, goods, it can be added to the cart and I will save it in the database. but how do I know that the record in the database belongs exactly to this user? According to the IP address, it is insufficient ... Does such an anonymous user already have a clear identifier from PHP?
Thank you
Hi,
use the session_id() function to identify an anonymous user in PHP.
This is about me - an anonymous user without registration chooses, for example, goods, it can be added to the cart and I will save it in the database. but how do I know that the record in the database belongs exactly to this user? According to the IP address, it is insufficient ... Does such an anonymous user already have a clear identifier from PHP?
Thank you
REPLY
Hi,
use the session_id() function to identify an anonymous user in PHP.