FormsAuthentication.FormsCookiePath プロパティ
フォーム認証 Cookie のパスを取得します。
名前空間: System.Web.Security
アセンブリ: System.Web (system.web.dll 内)
構文
'宣言
Public Shared ReadOnly Property FormsCookiePath As String
'使用
Dim value As String
value = FormsAuthentication.FormsCookiePath
public static string FormsCookiePath { get; }
public:
static property String^ FormsCookiePath {
String^ get ();
}
/** @property */
public static String get_FormsCookiePath ()
public static function get FormsCookiePath () : String
適用できません。
プロパティ値
フォーム認証チケット情報が格納される Cookie のパス。既定値は "/" です。
解説
FormsCookiePath プロパティ値は、ASP.NET アプリケーションの構成ファイル内の forms 構成要素の path 属性を使用して設定されます。FormsCookiePath は、FormsAuthenticationTicket 情報を格納する Cookie の Path を指定します。
使用例
Web.config ファイルの path 属性を使用して、FormsCookiePath プロパティ値を設定するコード例を次に示します。
<authentication mode="Forms">
<forms loginUrl="member_login.aspx"
cookieless="UseCookies"
path="/MyApplication" />
</authentication>
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
FormsAuthentication クラス
FormsAuthentication メンバ
System.Web.Security 名前空間