< Back

Get-PodeCookie

Sat Jan 18, 2020 7:15 pm

NAME Get-PodeCookie



SYNOPSIS

Retrieves a cookie from the Request.





SYNTAX

Get-PodeCookie [-Name] <String> [[-Secret] <String>] [-Raw] [<CommonParameters>]





DESCRIPTION

Retrieves a cookie from the Request, with the option to supply a secret to unsign the cookie's value.





PARAMETERS

-Name <String>

The name of the cookie to retrieve.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Secret <String>

The secret used to unsign the cookie's value.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Raw [<SwitchParameter>]

If supplied, the cookie returned will be the raw .NET Cookie object for manipulation.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Collections.Hashtable





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-PodeCookie -Name 'Views'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-PodeCookie -Name 'Views' -Secret 'hunter2'















RELATED LINKS