# Accessing Session Persistence Information

**URL:** <https://community.f5.com/t/accessing-session-persistence-information/41263>\
**Category:** Technical Forums\
**Tags:** irules, dev, devops, application-delivery\
**Created:** [August 18, 2005, 2:40pm UTC](https://community.f5.com/t/accessing-session-persistence-information/41263 "2005-08-18T14:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamish\_Marson\_3](https://avatars.discourse-cdn.com/v4/letter/h/b9e5f3/32.png) [@Hamish\_Marson\_3](https://community.f5.com/u/Hamish_Marson_3)\
**Post date:** [August 18, 2005, 2:40pm UTC](https://community.f5.com/t/accessing-session-persistence-information/41263/1 "2005-08-18T14:40:54Z")

</div>

Is there any way to access sessin persistence information from an iRule?

I’d like to build a rule that basically tracks the number of persistent sessions to a website and when the number exceeds a certain level, send new sessions to a backup site that just says’sorry we’re busy’, until the number drops.

For that I need to be able to detect when an HTTP connection is a new session or an existing one… Is there any way to do that?

---

<div class="post-metadata">

**Author:** ![drteeth\_127330](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@drteeth\_127330](https://community.f5.com/u/drteeth_127330)\
**Post date:** [August 18, 2005, 4:29pm UTC](https://community.f5.com/t/accessing-session-persistence-information/41263/2 "2005-08-18T16:29:20Z")

</div>

Yes. You can use the persist lookup command. It is described here ([Click here](http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=5&postid=1276)):

> **[DevCentral - An F5 Technical Community](https://community.f5.com/?tabid=28&view=topic&forumid=5&postid=1276)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.

---

<div class="post-metadata">

**Author:** ![Hamish\_Marson\_3](https://avatars.discourse-cdn.com/v4/letter/h/b9e5f3/32.png) [@Hamish\_Marson\_3](https://community.f5.com/u/Hamish_Marson_3)\
**Post date:** [August 19, 2005, 8:59am UTC](https://community.f5.com/t/accessing-session-persistence-information/41263/3 "2005-08-19T08:59:13Z")

</div>

That’s great. Thanks for that. Just what I needed. Now to see if I can make it all work as I want.

regards

Hamish.
