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?

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.