English 中文(简体)
窗体认证表单提示比会话超时大
原标题:Form authentication timout is bigger then session timeout

I am implementing site with login via facebook. I call FormsAuthentication.SetAuthCookie(response.email, true); after facebook authenticates user.

认证表单超时时间设定为129600(3个月)。

Should i set session timeout to the same value? As far as I understand session timeout should be as few as possible.

如果会话超时少于形成超时,是否正常? (例如,表129600会话30)

我知道有许多类似的问题,但这个问题对我来说并不清楚。

谢谢

最佳回答

您再次使用 cookie 进行认证, 您的服务器会话并不重要。 一个潜在的问题是, 如果您在 < code> Session 对象上存储数据并过期, 可能会给用户带来麻烦, 因为取决于此数据的功能可能会失败 。

如果您正确处理服务器 < code> Session 过期事宜, 您不会有问题 。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签