Skip to content

Commit

Permalink
fix: session expiration extended to 2 weeks (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Sep 8, 2021
1 parent 5fe732d commit 88aa64b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/utils/class-ql-session-handler.php
Expand Up @@ -347,13 +347,13 @@ public function has_session() {
*/
public function set_session_expiration() {
$this->_session_issued = time();
// 48 Hours.
// 14 Days.
$this->_session_expiration = apply_filters(
'graphql_woocommerce_cart_session_expire',
time() + ( 3600 * 48 )
time() + ( 3600 * 336 )
);
// 47 Hours.
$this->_session_expiring = $this->_session_expiration - ( 3600 );
// 13 Days.
$this->_session_expiring = $this->_session_expiration - ( 3600 * 24 );
}

/**
Expand Down

0 comments on commit 88aa64b

Please sign in to comment.