S
S
Sergey questions2018-07-25 13:50:29
PHP
Sergey questions, 2018-07-25 13:50:29

How to create and save a unique session ID?

Hello.
Please tell me how it is possible to generate a unique ID for each visitor when entering the site (a number, a set of numbers, for example), write this ID into the session $_SESSION['newid'] = 12345and so that this session lives until either the cache in the browser is reset or unset occurs.
$_SESSION['id']- does not fit, you need your own.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question