Private/Cookie.ps1
# # Copyright 2018, Alexis La Goutte <alexis.lagoutte at gmail dot com> # # SPDX-License-Identifier: Apache-2.0 # function Set-Cookie($name, $value, $domain, $path="/"){ $c=New-Object System.Net.Cookie; $c.Name=$name; $c.Path=$path; $c.Value = $value $c.Domain =$domain; return $c; } |