Skip to content

Commit 3aa3fbb

Browse files
committed
hotfix: Syntax errors in QL_Session_Handler refactored
1 parent e105082 commit 3aa3fbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function init_session_token() {
140140

141141
// Update session expiration on each action.
142142
$this->set_session_expiration();
143-
if ( $token->exp < $this->set_session_expiration ) {
143+
if ( $token->exp < $this->_session_expiration ) {
144144
$this->update_session_timestamp( $this->_customer_id, $this->_session_expiration );
145145
}
146146
} else {
@@ -354,10 +354,10 @@ public function set_session_expiration() {
354354
// 14 Days.
355355
$this->_session_expiration = apply_filters(
356356
'graphql_woocommerce_cart_session_expire',
357-
time() + ( 3600 * 336 )
357+
time() + ( 60 * 60 * 24 * 14 ) // Seconds * Minutes * Hours * Days
358358
);
359359
// 13 Days.
360-
$this->_session_expiring = $this->_session_expiration - ( 3600 * 60 );
360+
$this->_session_expiring = $this->_session_expiration - ( 60 * 60 * 24 ); // Seconds * Minutes * Hours
361361
}
362362

363363
/**

0 commit comments

Comments
 (0)