Solved

FormsAuthentication Unexpectedly logged out

Posted on 2011-09-29
8
242 Views
Last Modified: 2012-05-12
I have .Net 3.5 site hosted with webhost4life. I don't use any session variables.

I use the asp.net login control to log in. Attached is my web.config. I can see the cookie is created on my machine and has a expiry time of + 8 hours.

I know that the application pool recycles with webHost4life. Is this what logs me out?
<authentication mode="Forms">
      <forms 
		  loginUrl="Login.aspx" 
		  defaultUrl="uiWelcomeScreen.aspx"
		  protection="All" slidingExpiration="true" cookieless="UseCookies"
		  timeout="498" 
		  path="/">
      </forms>
    </authentication>

Open in new window

0
Comment
Question by:Eamon
  • 4
  • 3
8 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 100 total points
ID: 36816830
If the app pool recycles, then you would lose that value, yes. The app pool is just like an application: it has some state, and if you restart it, that state is reset to its initial values.
0
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 36816838
If u have used cookies and expiry time is of 8 hrs. Then It must be happening due to application pool recycling.
0
 
LVL 1

Author Comment

by:Eamon
ID: 36818506
My application pool seems to be recycling on average every 5 minutes even if it is not idle. I opened a support ticket with them but no real joy.

I suppose my next question is - who do you recommend? I've heard good things about discountasp.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 36871183
You can go to GoDaddy.
0
 
LVL 1

Author Comment

by:Eamon
ID: 36890238
One last thing:

Is there anything I can check to make sure it is because of the application pool recycling?
0
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 400 total points
ID: 36890377
You can pulish the application on a local server and check it
0
 
LVL 1

Author Comment

by:Eamon
ID: 36890516
I did that.

Strange thing is, I recycled my application pool manually by right clicking and selecting Recycle in my local IIS and it didn't log me out.

I am using IIS7 and my hosted application uses IIS6.

I'm baffled now. Any ideas?

0
 
LVL 1

Author Closing Comment

by:Eamon
ID: 36924445
In the end I moved hosting company and all is working as it should on my new hosting company.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question