How to make the installation of a new session_id?

sitename.ru/?sesskey=123123 - get sesskey GET with the session key.
Next I want to install it in php:
<?php
$sess = $_GET['sesskey'];
session_id($sess);
session_start();

It doesn't work, although $sess - string and not null. If I do this:
<?php
$sess = "123123"; // ie exactly the same
session_id($sess);
session_start();

All will work.

Help to fix, thanks.
March 19th 20 at 08:23
1 answer
March 19th 20 at 08:25
Solution
Solved problems with the browser.

Find more questions by tags Web DevelopmentPHP