Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

FormsAuthentication Unexpectedly logged out

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
Eamon
Asked:
Eamon
  • 4
  • 3
2 Solutions
 
käµfm³d 👽Commented:
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
 
Ramkisan JagtapLead DeveloperCommented:
If u have used cookies and expiry time is of 8 hrs. Then It must be happening due to application pool recycling.
0
 
EamonAuthor Commented:
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Ramkisan JagtapLead DeveloperCommented:
You can go to GoDaddy.
0
 
EamonAuthor Commented:
One last thing:

Is there anything I can check to make sure it is because of the application pool recycling?
0
 
Ramkisan JagtapLead DeveloperCommented:
You can pulish the application on a local server and check it
0
 
EamonAuthor Commented:
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
 
EamonAuthor Commented:
In the end I moved hosting company and all is working as it should on my new hosting company.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now