GHttpGetCookie Method

在当前 HTTP 请求里获取 Cookie。

Definition

Namespace: QuickAdmin.Common
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
public static string GetCookie(
	string name,
	bool savedAsBase64 = false
)

Parameters

name  string
Cookie 名称。
savedAsBase64  bool  (Optional)
指示 Cookie 值是否被存储为 base64 编码形式。

Return Value

string
Cookie 值,未找到时返回 null

Exceptions

ArgumentNullExceptionnamenull 或空白。

See Also