Skip to content

Commit

Permalink
properly set WP_Session expiration times. #2031
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed May 23, 2014
1 parent fa42804 commit cefb128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-edd-session.php
Expand Up @@ -199,7 +199,7 @@ public function set_cart_cookie( $set = true ) {
* @return int
*/
public function set_expiration_variant_time( $exp ) {
return current_time( 'timestamp' ) + ( 30 * 60 * 23 );
return 30 * 60 * 23;
}

/**
Expand All @@ -211,6 +211,6 @@ public function set_expiration_variant_time( $exp ) {
* @return int
*/
public function set_expiration_time( $exp ) {
return current_time( 'timestamp' ) + ( 30 * 60 * 24 );
return 30 * 60 * 24;
}
}

0 comments on commit cefb128

Please sign in to comment.