From 2db6940e3b4608bd76d306de8781bcf012dc99d6 Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Fri, 15 Jan 2016 20:40:53 +0100 Subject: [PATCH] Without ->withPath('/') browsers will start a new session for every other uri --- examples/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/index.php b/examples/index.php index d714f16c..d7966a22 100644 --- a/examples/index.php +++ b/examples/index.php @@ -43,7 +43,8 @@ 'c9UA8QKLSmDEn4DhNeJIad/4JugZd/HvrjyKrS0jOes=', // verification key (important: change this to your own) SetCookie::create('an-example-cookie-name') ->withSecure(false) // false on purpose, unless you have https locally - ->withHttpOnly(true), + ->withHttpOnly(true) + ->withPath('/'), new Parser(), 1200 // 20 minutes );