get() public method
Returns the session variable value with the session variable name. If the session variable does not exist, the $defaultValue will be returned.
public mixed get ( $key, $defaultValue = null )$key string
The session variable name $defaultValue mixed
The default value to be returned when the session variable does not exist. return mixed
The session variable value, or $defaultValue if the session variable does not exist.