Skip to content

Commit 93621b8

Browse files
authored
Update README.md
1 parent 0bdae66 commit 93621b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $di->set(Config::class, new Config($token, 'https://abrouter.com'));
4646
* @var Client $client
4747
*/
4848
$client = $di->make(Abrouter\Client\Client::class);
49-
$userSignature = uniqid();
49+
$userSignature = $_SERSSION['userId'] ?? uniqid();
5050
$experimentId = 'button_color';//experiment id is also there
5151

5252

@@ -68,7 +68,7 @@ use Abrouter\Client\Builders\StatEventBuilder;
6868

6969
require '/app/vendor/autoload.php';
7070

71-
$userId = uniqid();
71+
$userSignature = $_SERSSION['userId'] ?? uniqid();
7272

7373
$containerBuilder = new ContainerBuilder();
7474
$di = $containerBuilder->build();

0 commit comments

Comments
 (0)