Skip to content

Get-PodeSessionId

SYNOPSIS

Returns the currently authenticated SessionId.

SYNTAX

Get-PodeSessionId [-Signed] [<CommonParameters>]

DESCRIPTION

Returns the currently authenticated SessionId. If there's no session, or it's not authenticated, then null is returned instead. You can also have the SessionId returned as signed as well.

EXAMPLES

EXAMPLE 1

$sessionId = Get-PodeSessionId

PARAMETERS

-Signed

If supplied, the returned SessionId will also be signed.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES