Skip to content

Commit b3cc889

Browse files
committed
added samesite = secure
1 parent 14f0166 commit b3cc889

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/GraphJS/Session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ public static function begin(ResponseInterface &$response, string $id): void
4646
{
4747
$signer = new Sha256();
4848
$key = new Key(md5(getenv("SINGLE_SIGNON_TOKEN_KEY")));
49-
$cookie = SetCookie::thatStaysForever(static::COOKIE, $id, "/");
49+
$cookie = SetCookie::thatStaysForever(static::COOKIE, $id, "/", '', true, false, 'secure');
5050
$signedCookie = $signer->sign($cookie, $key);
5151
$response = $signedCookie->addToResponse($response);
5252
}
5353

5454
public static function destroy(ResponseInterface &$response): void
5555
{
56-
$cookie = SetCookie::thatDeletesCookie(static::COOKIE, "/");
56+
$cookie = SetCookie::thatDeletesCookie(static::COOKIE, "/", '', true, false, 'secure');
5757
$response = $cookie->addToResponse($response);
5858
}
5959
}

0 commit comments

Comments
 (0)