File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments