Skip to content

Commit 69bc46c

Browse files
committed
refactor: undo changes from PR #6
Changes made to PR #6 are undone. They will be taken into account in the next version. #10
1 parent 6d87d9d commit 69bc46c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Session.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?php
2+
23
/**
34
* PHP library for handling sessions.
45
*
56
* @author David Carr <[email protected]>
6-
* @author Josantonius <hello@josantonius.com>
7-
* @copyright 2017 - 2018 (c) Josantonius - PHP-Session
7+
* @author Josantonius <hello@josantonius.dev>
8+
* @copyright 2017 (c) Josantonius
89
* @license https://opensource.org/licenses/MIT - The MIT License (MIT)
9-
* @link https://github.com/Josantonius/PHP-Session
10+
* @link https://github.com/josantonius/php-session
1011
* @since 1.0.0
1112
*/
13+
1214
namespace Josantonius\Session;
1315

1416
/**
@@ -65,10 +67,10 @@ public static function getPrefix()
6567
*
6668
* @return bool
6769
*/
68-
public static function init($lifeTime = 0, $sameSite = 'Strict', $domain = '', $secure = false, $httpOnly = true)
70+
public static function init($lifeTime = 0)
6971
{
7072
if (self::$sessionStarted == false) {
71-
session_set_cookie_params($lifeTime, '/; samesite=' . $sameSite, $domain, $secure, $httpOnly);
73+
session_set_cookie_params($lifeTime);
7274
session_start();
7375

7476
return self::$sessionStarted = true;

0 commit comments

Comments
 (0)