Steamworks.SteamHTMLSurface.SetCookie C# (CSharp) Method

SetCookie() public static method

set a webcookie for the hostname in question

public static SetCookie ( string pchHostname, string pchKey, string pchValue, string pchPath = "/", uint nExpires, bool bSecure = false, bool bHTTPOnly = false ) : void
pchHostname string
pchKey string
pchValue string
pchPath string
nExpires uint
bSecure bool
bHTTPOnly bool
return void
		public static void SetCookie(string pchHostname, string pchKey, string pchValue, string pchPath = "/", uint nExpires = 0, bool bSecure = false, bool bHTTPOnly = false) {
			InteropHelp.TestIfAvailableClient();
			using (var pchHostname2 = new InteropHelp.UTF8StringHandle(pchHostname))
			using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey))
			using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue))
			using (var pchPath2 = new InteropHelp.UTF8StringHandle(pchPath)) {
				NativeMethods.ISteamHTMLSurface_SetCookie(pchHostname2, pchKey2, pchValue2, pchPath2, nExpires, bSecure, bHTTPOnly);
			}
		}