# Getting logged out all the time

**URL:** <https://www.sotonians.com/t/getting-logged-out-all-the-time/504>\
**Category:** Tech\
**Created:** [21 August 2015 18:10 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504 "2015-08-21T18:10:41Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![pap](https://www.sotonians.com/user_avatar/www.sotonians.com/pap/32/74795_2.png) [@pap](https://www.sotonians.com/u/pap)\
**Post date:** [25 September 2015 12:29 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/101 "2015-09-25T12:29:47Z")

</div>

I’m trying to isolate the code that automatically logs people back in to see what is going on, as I’ve been logged out loads today.

---

<div class="post-metadata">

**Author:** ![PhilippineSaint](https://www.sotonians.com/user_avatar/www.sotonians.com/philippinesaint/32/3978_2.png) [@PhilippineSaint](https://www.sotonians.com/u/PhilippineSaint)\
**Post date:** [25 September 2015 12:56 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/102 "2015-09-25T12:56:12Z")

</div>

Not only did I get logged out it would not accept my password so had to request a new one ?

---

<div class="post-metadata">

**Author:** ![Bearsy](https://www.sotonians.com/user_avatar/www.sotonians.com/bearsy/32/6_2.png) [@Bearsy](https://www.sotonians.com/u/Bearsy)\
**Post date:** [25 September 2015 16:55 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/103 "2015-09-25T16:55:48Z")

</div>

Take a hint phil bro

---

<div class="post-metadata">

**Author:** ![PhilippineSaint](https://www.sotonians.com/user_avatar/www.sotonians.com/philippinesaint/32/3978_2.png) [@PhilippineSaint](https://www.sotonians.com/u/PhilippineSaint)\
**Post date:** [26 September 2015 01:05 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/104 "2015-09-26T01:05:15Z")

</div>

Cheers Bearsy love you too.

NB after resetting all internet in Philippines it is now keeping me logged in 😆

---

<div class="post-metadata">

**Author:** ![Bucks](https://www.sotonians.com/user_avatar/www.sotonians.com/bucks/32/87_2.png) [@Bucks](https://www.sotonians.com/u/Bucks)\
**Post date:** [26 September 2015 06:20 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/105 "2015-09-26T06:20:36Z")

</div>

First time today - did not need to login again! Well done Pap! 👏 Unless its a fluke, to be repeated as often as a Gaston goal 🚾

---

<div class="post-metadata">

**Author:** ![PhilippineSaint](https://www.sotonians.com/user_avatar/www.sotonians.com/philippinesaint/32/3978_2.png) [@PhilippineSaint](https://www.sotonians.com/u/PhilippineSaint)\
**Post date:** [27 September 2015 00:53 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/106 "2015-09-27T00:53:39Z")

</div>

Had to log in again this morning ?

---

<div class="post-metadata">

**Author:** ![JBoy](https://www.sotonians.com/user_avatar/www.sotonians.com/jboy/32/21_2.png) [@JBoy](https://www.sotonians.com/u/JBoy)\
**Post date:** [27 September 2015 08:12 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/107 "2015-09-27T08:12:47Z")

</div>

I thought it was just me.

---

<div class="post-metadata">

**Author:** ![hoofinruth](https://www.sotonians.com/user_avatar/www.sotonians.com/hoofinruth/32/51_2.png) [@hoofinruth](https://www.sotonians.com/u/hoofinruth)\
**Post date:** [27 September 2015 08:33 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/108 "2015-09-27T08:33:16Z")

</div>

> Originally posted by @JBoy
> 
> I thought it was just me.

Nope - happens to me every day and sometimes lots of times each day 😢

---

<div class="post-metadata">

**Author:** ![Bucks](https://www.sotonians.com/user_avatar/www.sotonians.com/bucks/32/87_2.png) [@Bucks](https://www.sotonians.com/u/Bucks)\
**Post date:** [27 September 2015 09:03 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/109 "2015-09-27T09:03:48Z")

</div>

It was a fluke, had to login today

---

<div class="post-metadata">

**Author:** ![PhilippineSaint](https://www.sotonians.com/user_avatar/www.sotonians.com/philippinesaint/32/3978_2.png) [@PhilippineSaint](https://www.sotonians.com/u/PhilippineSaint)\
**Post date:** [27 September 2015 09:50 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/110 "2015-09-27T09:50:11Z")

</div>

I have only had to log in once though.

Does Pap’s server (not Bletch) do an Automatic update at say midnight which logs everybody off?

---

<div class="post-metadata">

**Author:** ![pap](https://www.sotonians.com/user_avatar/www.sotonians.com/pap/32/74795_2.png) [@pap](https://www.sotonians.com/u/pap)\
**Post date:** [27 September 2015 09:52 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/111 "2015-09-27T09:52:20Z")

</div>

It reboots every night at 2am.

---

<div class="post-metadata">

**Author:** ![PhilippineSaint](https://www.sotonians.com/user_avatar/www.sotonians.com/philippinesaint/32/3978_2.png) [@PhilippineSaint](https://www.sotonians.com/u/PhilippineSaint)\
**Post date:** [27 September 2015 10:21 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/112 "2015-09-27T10:21:51Z")

</div>

> Originally posted by @pap
> 
> > Originally posted by @PhilippineSaint
> > 
> > I have only had to log in once though.
> > 
> > Does Pap’s server (not Bletch) do an Automatic update at say midnight which logs everybody off?
> 
> It reboots every night at 2am.

When I get booted out at 09:00 am Philipine time tomorrow morning theres the problem ?

---

<div class="post-metadata">

**Author:** ![Intiniki](https://www.sotonians.com/user_avatar/www.sotonians.com/intiniki/32/9_2.png) [@Intiniki](https://www.sotonians.com/u/Intiniki)\
**Post date:** [27 September 2015 14:47 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/113 "2015-09-27T14:47:34Z")

</div>

still get logged out

---

<div class="post-metadata">

**Author:** ![JBoy](https://www.sotonians.com/user_avatar/www.sotonians.com/jboy/32/21_2.png) [@JBoy](https://www.sotonians.com/u/JBoy)\
**Post date:** [27 September 2015 14:53 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/114 "2015-09-27T14:53:48Z")

</div>

It’s disgusting. I can believe I pay a fiver per month for such shoddy service.

---

<div class="post-metadata">

**Author:** ![Ohio-Saint](https://www.sotonians.com/user_avatar/www.sotonians.com/ohio-saint/32/35_2.png) [@Ohio-Saint](https://www.sotonians.com/u/Ohio-Saint)\
**Post date:** [27 September 2015 15:06 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/115 "2015-09-27T15:06:01Z")

</div>

This thread should be stickied to the top. It reminds me I have to log in.

---

<div class="post-metadata">

**Author:** ![pap](https://www.sotonians.com/user_avatar/www.sotonians.com/pap/32/74795_2.png) [@pap](https://www.sotonians.com/u/pap)\
**Post date:** [27 September 2015 18:38 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/116 "2015-09-27T18:38:07Z")

</div>

I think I have a fix for this. Shouldn’t take too long to effect, but I pretty much guarantee you’ll all be logged out.

For the techies, here’s the explanation. Most web servers are fairly efficient. If no-one is actually using the site, then there won’t be any processes running to grab pages and suchlike. The next time someone asks for a page, the web server will fire up on demand and serve the content.

What appear to be happening is this. Each site on the server has a unique identifier. This tells the server which site is which, and also helps with automatic relogging in. If you do not specifically set this identifier, then the system will (quite helpfully) generate one for you. We are not specifically setting this identifier.

So I believe what happens is this. Whenever Sotonians spins down and these processes stop, the consequent restart (when someone asks for a page) does this unique site ID generation thing, except now it is a different ID from what the site was recognised as before. This means that all information pertaining to persistent logins, etc - is lost - meaning we have to relog.

The solution is to give Sotonians a permanent identifier, specified in the configuration. This should mean that when things spin down, user accounts will be honoured when it spins back up.

---

<div class="post-metadata">

**Author:** ![Fatso](https://www.sotonians.com/user_avatar/www.sotonians.com/fatso/32/18_2.png) [@Fatso](https://www.sotonians.com/u/Fatso)\
**Post date:** [27 September 2015 20:04 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/117 "2015-09-27T20:04:19Z")

</div>

I’m scared and confused. Is the solution to make everyone logged out all the time so that we are equal?

---

<div class="post-metadata">

**Author:** ![Bathsaint](https://www.sotonians.com/user_avatar/www.sotonians.com/bathsaint/32/22_2.png) [@Bathsaint](https://www.sotonians.com/u/Bathsaint)\
**Post date:** [27 September 2015 20:14 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/118 "2015-09-27T20:14:52Z")

</div>

I blame Jeremy Corbyn. Already, his influence is being felt…

---

<div class="post-metadata">

**Author:** ![pap](https://www.sotonians.com/user_avatar/www.sotonians.com/pap/32/74795_2.png) [@pap](https://www.sotonians.com/u/pap)\
**Post date:** [27 September 2015 23:18 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/119 "2015-09-27T23:18:35Z")

</div>

Fear not, Lone Wolf.

I was just referring to the fact that by making the configuration change, everyone would get logged out once. I believe that’s a one-time thing though, and shouldn’t happen in the future, even if we do make further changes to the configuration.

---

<div class="post-metadata">

**Author:** ![pap](https://www.sotonians.com/user_avatar/www.sotonians.com/pap/32/74795_2.png) [@pap](https://www.sotonians.com/u/pap)\
**Post date:** [29 September 2015 08:20 UTC](https://www.sotonians.com/t/getting-logged-out-all-the-time/504/120 "2015-09-29T08:20:35Z")

</div>

So I take it that everyone has had the day of not-getting-logged-out bliss that I’ve just experienced?

[Previous page](https://www.sotonians.com/t/getting-logged-out-all-the-time/504.md?page=5)

[Next page](https://www.sotonians.com/t/getting-logged-out-all-the-time/504.md?page=7)
