FormsAuthenticationTicket构造函数第二个参数的重要性是什么? [英] What is the importance of FormsAuthenticationTicket constructor second parameter?

查看:62
本文介绍了FormsAuthenticationTicket构造函数第二个参数的重要性是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下构造函数中.

In the following constructor.

FormsAuthenticationTicket(String, Boolean, Int32)

在这种情况下我们将重视此参数的第二个参数(isPersistent)有什么需要.

what is the need of the second parameter (isPersistent) in which situations we will give importance to this parameter.

推荐答案



希望您已经用谷歌搜索了该查询,但是我认为您应该在MSDN上搜索信息.

MSDN文章 [
Hi,

Hope you have googled for this query, but i think you should search on MSDN for information.

This MSDN Article[^] will help you to understand FormsAuthenticationTicket class.

Thanks
-Amit Gajjar.


请参阅此链接.....
实施安全的ASP.NET MVC应用程序 [
Refer this link........
Implement secure ASP.NET MVC applications[^]


true if the ticket will be stored in a persistent cookie (saved across browser sessions); otherwise, false. If the ticket is stored in the URL, this value is ignored.


这篇关于FormsAuthenticationTicket构造函数第二个参数的重要性是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆