# Complex session management

**URL:** <https://community.f5.com/t/complex-session-management/30485>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, security\
**Created:** [May 7, 2019, 6:28pm UTC](https://community.f5.com/t/complex-session-management/30485 "2019-05-07T18:28:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samdlee\_305622](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@samdlee\_305622](https://community.f5.com/u/samdlee_305622)\
**Post date:** [May 7, 2019, 6:28pm UTC](https://community.f5.com/t/complex-session-management/30485/1 "2019-05-07T18:28:28Z")

</div>

Hi,

Assume that my company provides many login methods with different authentication level and user goes to _[https://www.mycompany.com/apm-enabled-auth1-url](https://www.mycompany.com/apm-enabled-auth1-url)_, the APM evaluations is started and one external login page with username and password is being displayed on frontend. On the GUI, user can also easily to switch a higher authentication level login method with two factors, i.e by clicking link _[https://www.mycompany.com/apm-enabled-auth2-url](https://www.mycompany.com/apm-enabled-auth2-url)_, which is associated with another AAA server on BigIP.

Since there is already an existing, started, but unfinished APM session on BigIP, the newly incoming http request for another APM enabled url, _[https://www.mycompany.com/apm-enabled-auth2-url](https://www.mycompany.com/apm-enabled-auth2-url)_ will trigger some strange BigIP internal _access\_notfound.php3_. Can someone shed the light on what is the right way to handle these situations, reusing the started APM session for the second url or remove the existing and start a new APM session? if a new APM session has to be created, is there a way to migrate some session attributes from the previous APM session to the new APM session for the second url?

thanks a log in advance!

---

<div class="post-metadata">

**Author:** ![Rene\_C](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@Rene\_C](https://community.f5.com/u/Rene_C)\
**Post date:** [May 8, 2019, 12:10pm UTC](https://community.f5.com/t/complex-session-management/30485/2 "2019-05-08T12:10:39Z")

</div>

Not sure if it helps, but you could try switching your access policy scopes to “virtual” instead of “global”, then the session (and the according cookies) should only be valid for the virtual you are currently on.

Cheers,

Rene
