Kentico 10 is constantly kicking out the admin user

Nikarius 21 asked on November 5, 2018 02:46

Exact same problem as here: https://devnet.kentico.com/questions/kentico-10-is-constantly-kicking-out-the-admin-user but no answer to the response by Trevor Fayas was ever posted and the thread has been closed.

Original message: "I have installed the free version of Kentico 10 on my host and while i can login as Admin every time i go to do something it boots me back to the login screen. I login and I can do what i was trying to do, but then i go somewhere else and it boots me out again. It is very odd and sporadic. Sometimes i can get to four or five pages but without fail it will eventually kick me out. Any idea what is going on here? I have Ver 8 running on the same server setup without issue." ^ Basically what I'm getting. I'm using Kentico 10.0.51. Other instances I've used are fine, though v8.2.

In response to Trevor Fayas' points:

  1. Cookie loss. Can you check your cookies that are sent to the server when you get logged out? Not sure what I'm looking for on this one. There are three ASP.NET_SessionId, CMSCsrfCookie, CMSPreferredCulture. All seem fine.
  2. IIS App Pool Restart. Check Event logs, is your site recycling frequently? Yes, this is happening frequently. Every time I'm kicked out there's a end/start app cycle
  3. Web Farm/azure. Not using azure. I suppose a web farm is possible as the site is on WEB7 at the hosting company
  4. Perhaps there is a bug and you need to hotfix, what version of 10 and is there anything already fixed in the Download hotfix bug listing on here? Applied hotfix 10.0.51 (latest) to the instance.

Any ideas?

Thanks in advance,

Nic

Correct Answer

Juraj Ondrus answered on November 5, 2018 08:49

Hi,
There should be also the .ASPXFORMSAUTH cookie in the browser. However, as per #2 - your application is constantly restarted. This means the session is lost and the user is logged out. When you check the Event Log (or if not able to get into the app, check the CMS_EventLog DB table) - what is the reason/details of the Application End event?
I would recommend double check the system requirements to make sure Kentico 10 can run on given environment, also check the IIS setup - there could be some limits set e.g. on CPU or memory usage and if exceeded, application is killed. You can also try setting up a machine key to preserve the session and the above mentioned cookie.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Nikarius 21 answered on November 5, 2018 10:21

Thanks Juraj, great advice.

I've checked the Event Log and it says "Message: HostingEnvironment initiated shutdown" attached to the End App entries.

I don't have a huge amount of control over the server environment with the hosting company so if it's not up to spec, or something needs modifying there, then I should look to upgrade to an environment that is. I think that'll be the best bet to be honest.

Thanks for the help, much appreciated.

Nic

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.