# Protected resource custom check

**URL:** <https://community.f5.com/t/protected-resource-custom-check/34382>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, remote-access, security\
**Created:** [December 2, 2009, 7:00am UTC](https://community.f5.com/t/protected-resource-custom-check/34382 "2009-12-02T07:00:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan09\_87803](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@Stephan09\_87803](https://community.f5.com/u/Stephan09_87803)\
**Post date:** [December 2, 2009, 7:00am UTC](https://community.f5.com/t/protected-resource-custom-check/34382/1 "2009-12-02T07:00:37Z")

</div>

Hi all,

I’m using firepass version 6.0.3

Is it possible to use an advanced session variable in a protected resource check?

I have created an advanced session variable which returns “OHRA” in some circumstances. I’ve named the advanced session variable “Test”

I’ve then created a custom check in a protected resource as follows

session.asv.Test ==“OHRA”

But it is not working…

I’ve also tried

session.asv.Test ==OHRA

%session.asv.Test% ==OHRA

%session.asv.Test% ==“OHRA”

I know that the variable is being evaluated and returns correctly because I followed a KB article and set the variable as the name of an application link - the variable is there plain as day on the screen as the name of the application link, yet when I use it in the protected resource check as above it fails the test.

Looking forward to hearing from anyone who can help with this one.

Stephan

---

<div class="post-metadata">

**Author:** ![Mike\_61719](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Mike\_61719](https://community.f5.com/u/Mike_61719)\
**Post date:** [December 2, 2009, 7:13pm UTC](https://community.f5.com/t/protected-resource-custom-check/34382/2 "2009-12-02T19:13:10Z")

</div>

Check the logon variables and see if it is populating. Maintenance → Troubleshooting → System variables.
