1

In my solution i have Forms Authentication. In my application when user login working it is suddenly log out. so many issues occuring. i change the timeout minutes in configuration like the following. but no hope..

Web.config

<authentication mode="Forms">
  <forms loginUrl="~/Account/LogOn" timeout="2880"></forms>
</authentication>

Account Models:

FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);

Here i use false method like

FormsAuthentication.SetAuthCookie(userName, createPersistentCookie,false);

It is showing line error

overload methods (String, bool string) like that.. 

please give me ideas about this?

PoliDev
  • 1,408
  • 9
  • 24
  • 45
  • 1
    Suggest looking at my answer to see if it is the same issue: http://stackoverflow.com/questions/8989749/timeout-not-working-in-asp-net-mvc-formsauthentication/17961503#17961503 – Valamas Dec 16 '13 at 04:57
  • possible duplicate of [How to create persistent cookies in asp.net?](http://stackoverflow.com/questions/3140341/how-to-create-persistent-cookies-in-asp-net) – शेखर Dec 16 '13 at 04:58
  • No, my requirement is different from that. – PoliDev Dec 16 '13 at 05:02

0 Answers0