public function set( $key, $value ) {
		$key = sanitize_key( $key );

		$_SESSION[ $key ] = wp_json_encode( $value );

		return $_SESSION[ $key ];
	}
public function set( $key, $value ) {
		$key = sanitize_key( $key );

		$_SESSION[ $key ] = wp_json_encode( $value );

		return $_SESSION[ $key ];
	}
public function set ( $ key , $ value ) { $ key = sanitize_key ( $ key ) ; $ _SESSION [ $ key ] = wp_json_encode ( $ value ) ; return $ _SESSION [ $ key ] ; }
Set a session variable

@since 1.5

@param string $key Session key
@param int|string|array $value Session variable

@return mixed Session variable
Set a session variable