Converts an expiration to an array of session information.
Parameters
$session
mixedrequired- Session or expiration.
Source
protected function prepare_session( $session ) {
if ( is_int( $session ) ) {
return array( 'expiration' => $session );
}
return $session;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.