LLMS_Session::set( string $key, string $value )

Set a session variable.


Parameters Parameters

$key

(string) (Required) The key of the session variable.

$value

(string) (Required) The value of the session variable.


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/class.llms.session.php

		if ( empty( $parts[0] ) || empty( $parts[3] ) ) {
			return false;
		}

		$hash_str = sprintf( '%1$s|%2$s', $parts[0], $parts[1] );
		$expected = hash_hmac( 'md5', $hash_str, wp_hash( $hash_str ) );

		if ( ! hash_equals( $expected, $parts[3] ) ) {
			return false;
		}

		return $parts;

	}

	/**

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.