Skip to content

Commit 88aa64b

Browse files
authored
fix: session expiration extended to 2 weeks (#551)
1 parent 5fe732d commit 88aa64b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/utils/class-ql-session-handler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,13 @@ public function has_session() {
347347
*/
348348
public function set_session_expiration() {
349349
$this->_session_issued = time();
350-
// 48 Hours.
350+
// 14 Days.
351351
$this->_session_expiration = apply_filters(
352352
'graphql_woocommerce_cart_session_expire',
353-
time() + ( 3600 * 48 )
353+
time() + ( 3600 * 336 )
354354
);
355-
// 47 Hours.
356-
$this->_session_expiring = $this->_session_expiration - ( 3600 );
355+
// 13 Days.
356+
$this->_session_expiring = $this->_session_expiration - ( 3600 * 24 );
357357
}
358358

359359
/**

0 commit comments

Comments
 (0)