Solved

FormsAuthentication Unexpectedly logged out

Posted on 2011-09-29
8
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net creating Contact in Outlook 1 61
VB.Net SQL Query 2 Tables Different Databases 3 47
orderby list (from Json) 1 32
PowerShell: Adding ToGB to a script 4 30
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

697 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