# Session logout through python API(Shotgrid API)

**URL:** <https://community.shotgridsoftware.com/t/session-logout-through-python-api-shotgrid-api/18301>\
**Category:** Flow Production Tracking\
**Tags:** python-api\
**Created:** [January 8, 2024, 6:49am UTC](https://community.shotgridsoftware.com/t/session-logout-through-python-api-shotgrid-api/18301 "2024-01-08T06:49:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alam](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Alam](https://community.shotgridsoftware.com/u/Alam)\
**Post date:** [January 8, 2024, 6:49am UTC](https://community.shotgridsoftware.com/t/session-logout-through-python-api-shotgrid-api/18301/1 "2024-01-08T06:49:47Z")

</div>

Session logout is available in site preferences, but the options are 1 week, 24 hours, and 1 hour.  
But I want to logout the session from the Python API every 6 hours.  
Please advise on this as soon as possible.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [January 8, 2024, 5:02pm UTC](https://community.shotgridsoftware.com/t/session-logout-through-python-api-shotgrid-api/18301/2 "2024-01-08T17:02:58Z")

</div>

I believe the session logout setting pertains to the User login on the site, not api logins.  
What is it you particulalrly want your api session to logout for?
