# session

**URL:** <https://ask.gibbonedu.org/t/session/2702>\
**Category:** General\
**Created:** [August 27, 2020, 8:34am UTC](https://ask.gibbonedu.org/t/session/2702 "2020-08-27T08:34:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bandhit](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@bandhit](https://ask.gibbonedu.org/u/bandhit)\
**Post date:** [August 27, 2020, 8:34am UTC](https://ask.gibbonedu.org/t/session/2702/1 "2020-08-27T08:34:55Z")

</div>

Hi, I am very new to Gibbon. I am having problem with session.  
I am not sure what happened here but when I tried to login, it says,  
“our session expired, so you were automatically logged out of the system.”  
This happens to all the users I created.

Advice is greatly appreciated

---

<div class="post-metadata">

**Author:** ![ross](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/ross/32/8_2.png) [@ross](https://ask.gibbonedu.org/u/ross)\
**Post date:** [August 27, 2020, 10:44pm UTC](https://ask.gibbonedu.org/t/session/2702/2 "2020-08-27T22:44:11Z")

</div>

Hi bandhit,

Welcome to Gibbon! Does this happen immediately, or after a delay of some kind?

Please can you tell us what kind of server stack you are running Gibbon on?

Thanks,

Ross

---

<div class="post-metadata">

**Author:** ![bandhit](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@bandhit](https://ask.gibbonedu.org/u/bandhit)\
**Post date:** [August 28, 2020, 1:02am UTC](https://ask.gibbonedu.org/t/session/2702/3 "2020-08-28T01:02:43Z")

</div>

Hi Ross,

Thanks you Ross,  
No it does not happened immediately, actually it was working fine for hours but then just happened.  
I think the administrator has Linux set up .

Cheers,  
Bandhit

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [August 28, 2020, 2:19am UTC](https://ask.gibbonedu.org/t/session/2702/4 "2020-08-28T02:19:06Z")

</div>

Hi bandhit,

Welcome to the Gibbon community 😃 What you’re seeing is likely a feature rather than a bug. User sessions will be timed out if they’re inactive for a certain length of time, to ensure that someone else can’t open the device and use the system. Especially useful for schools where teachers are constantly on the move and using different devices.

---

<div class="post-metadata">

**Author:** ![bandhit](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@bandhit](https://ask.gibbonedu.org/u/bandhit)\
**Post date:** [August 28, 2020, 2:42am UTC](https://ask.gibbonedu.org/t/session/2702/5 "2020-08-28T02:42:39Z")

</div>

Hi Sandra,

Thank you. I think it might relate to “Session Duration” in System setting which I tried to change from default value which is “1200” to more but did not pay attention to detail about “Should be less than PHP’s session.gc\_maxlifetie”  
but I seem to have the back up of the DB so I rolled it back and it works again.

---

<div class="post-metadata">

**Author:** ![ross](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/ross/32/8_2.png) [@ross](https://ask.gibbonedu.org/u/ross)\
**Post date:** [August 29, 2020, 3:51am UTC](https://ask.gibbonedu.org/t/session/2702/6 "2020-08-29T03:51:05Z")

</div>

Ah, that makes sense. Having a setting of more than session.gc\_maxlifetime will mean that the session life is shorter, on average than Session Duration in Gibbon. You can always increase session.gc\_maxlifetime, reload the server config (e.g. **sudo service apache2 reload** in Linux) and then update Session Duration in Gibbon if you want a longer session. Cheers! Ross.
