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.
Return Return
(mixed)
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;
}
/**
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |