public function clean( $maxlifetime, $next ) {
		global $wpdb;

		$wpdb->query(
			$wpdb->prepare(
				"DELETE FROM {$wpdb->prefix}sm_sessions WHERE session_expiry < %s LIMIT %d",
				time(),
				1000
			)
		);

		return $next( $maxlifetime );
	}
public function clean( $maxlifetime, $next ) {
		global $wpdb;

		$wpdb->query(
			$wpdb->prepare(
				"DELETE FROM {$wpdb->prefix}sm_sessions WHERE session_expiry < %s LIMIT %d",
				time(),
				1000
			)
		);

		return $next( $maxlifetime );
	}
public function clean ( $ maxlifetime , $ next ) { global $ wpdb ; $ wpdb -> query ( $ wpdb -> prepare ( "DELETE FROM {$wpdb->prefix}sm_sessions WHERE session_expiry < %s LIMIT %d" , time ( ) , 1000 ) ) ; return $ next ( $ maxlifetime ) ; }
Update the database by removing any sessions that are no longer valid.

@param int $maxlifetime (Unused)
@param callable $next Next clean operation in the stack

@global \wpdb $wpdb

@return mixed
Update the database by removing any sessions that are no longer valid .