hyTags
HomeHome DocumentationDocumentation

cookie-get-value

Gets the value of a cookie by name
Parameter
Type
Description
name
String
The name of the cookie to get the value from
return
string
The value of the cookie, or nil if not found
Test Case:Get cookie value
    <div></div>
    
    <cookie-set name="username" value="john">
    <cookie-get-value name="username">
    <assert-equal value="john" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed