# ThinLinc users sessions

**URL:** https://community.thinlinc.com/t/thinlinc-users-sessions/766
**Category:** Community Support
**Tags:** linux, thinlinc
**Created:** [26 October 2023 15:40 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766 "2023-10-26T15:40:47Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![cyb3rx](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cyb3rx](https://community.thinlinc.com/u/cyb3rx)
#### Post date: [26 October 2023 15:40 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/1 "2023-10-26T15:40:47Z")

</div>

Hi  
I am trying to find a solution for ThinLinc sessions, users usually don’t log-out the session properly when they leave, this leaves their thinlinc sessions open on server which keep consuming server resources and sometimes corrupt their files in case if the server is restarted.

 ![thinlinc sessions](https://europe1.discourse-cdn.com/flex005/uploads/thinlinc/original/1X/632a5274d99217d222beaf1c50aad966a7067951.jpeg)

how can I configure auto log-out policy for thinlinc sessions, like if someone is inactive for 3 hours his session must be automatically log-out (not killed but gracefully log-out)

I would really appreciate if you can help me out with this.

thanks

JA

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)
#### Post date: [26 October 2023 17:46 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/2 "2023-10-26T17:46:46Z")

</div>

Yes, there are a couple of different options, you can read about them in our Administrator’s Guide here:

[https://www.cendio.com/resources/docs/tag/config\_lifetime.html?highlight=limiting](https://www.cendio.com/resources/docs/tag/config_lifetime.html?highlight=limiting)

Kind regards,  
Martin

---

<div class="post-metadata">

### Author: ![cyb3rx](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cyb3rx](https://community.thinlinc.com/u/cyb3rx)
#### Post date: [12 November 2023 17:12 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/3 "2023-11-12T17:12:22Z")

</div>

Hi, Can I make this time based, like after 6PM but before 8AM it logout user sessions who are idle for 2 hours

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)
#### Post date: [14 November 2023 15:06 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/4 "2023-11-14T15:06:02Z")

</div>

Sorry for keeping you waiting!

Sorry to say, there’s no tooling in ThinLinc for achieving that functionality.

Kind regards,  
Martin

---

<div class="post-metadata">

### Author: ![cyb3rx](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cyb3rx](https://community.thinlinc.com/u/cyb3rx)
#### Post date: [23 December 2023 06:59 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/5 "2023-12-23T06:59:31Z")

</div>

I have configured -MaxIdleTime 28800 and in the morning users are not able to login the error message that we got “username/password incorrect” it’s worth noting here that some users are able to login on same servers without any issue

there’s no issue with LDAP we have checked their password with other LDAP integrated services and it was working absolutely fine

---

<div class="post-metadata">

### Author: ![CendioOssman](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/cendioossman/32/385_2.png) [@CendioOssman](https://community.thinlinc.com/u/CendioOssman)
#### Post date: [27 December 2023 07:20 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/6 "2023-12-27T07:20:32Z")

</div>

I’m afraid that must be caused by something else, as authentication and the idle setting are not handled by the same components.

Could you have a look and see what the system journal states when these authentications failed?

---

<div class="post-metadata">

### Author: ![sswirski](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sswirski](https://community.thinlinc.com/u/sswirski)
#### Post date: [29 January 2026 17:08 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/7 "2026-01-29T17:08:27Z")

</div>

The options in the manual sound good, but: How does ThinLinc determine a session as “idle”?

We often have users who:

- start a small script that queries some API somewhere for some data once per hour/day
- run “journalctl -f | grep error” in a terminal windows
- start a bigger Python script that aligns reads to some genome for hours/days

and then they disconnect the session and come back a week later.

We would not consider these kind of session as “idle” and would not want to kill them while some process (python, “tail -f”, “journalctl -f”, etc) is running, but we would very much like to kill sessions where the user just didn’t know “KDE menu → Session → Log out” vs “F8 → disconnect” and left a session REALLY idling.

Is there some way to implement this distinction in ThinLinc? Maybe with some kind of allow-list or so?

---

<div class="post-metadata">

### Author: ![aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/aaron/32/13_2.png) [@aaron](https://community.thinlinc.com/u/aaron)
#### Post date: [29 January 2026 18:35 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/8 "2026-01-29T18:35:19Z")

</div>

> [@sswirski](#):
>
> How does ThinLinc determine a session as “idle”?

“Idle” in this context means “lack of user input” (e.g. keyboard/mouse events).

ThinLinc/Xvnc doesn’t really know how many processes a user has running, or which of these process are important enough to warrant leaving a session alive. So something like what you describe would probably have to be implemented at system level, maybe using something like `loginctl`.

---

<div class="post-metadata">

### Author: ![sswirski](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sswirski](https://community.thinlinc.com/u/sswirski)
#### Post date: [30 January 2026 08:40 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/9 "2026-01-30T08:40:09Z")

</div>

Thanks, this helps a lot! I will try to find an implementation for this. Just “no input” idle would probably kill a lot of valid sessions for us. 😅

---

<div class="post-metadata">

### Author: ![aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/aaron/32/13_2.png) [@aaron](https://community.thinlinc.com/u/aaron)
#### Post date: [1 February 2026 19:10 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/10 "2026-02-01T19:10:03Z")

</div>

If you do find a solution, feel free to let us know! It might be useful for others too.

---

<div class="post-metadata">

### Author: ![sswirski](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sswirski](https://community.thinlinc.com/u/sswirski)
#### Post date: [3 February 2026 06:36 UTC](https://community.thinlinc.com/t/thinlinc-users-sessions/766/11 "2026-02-03T06:36:58Z")

</div>

I will report back if I find something! 😉
