Forum Discussion
Martijn_65080
Aug 19, 2013Cirrus
I Finally came up with this.
when HTTP_REQUEST { if { [string tolower [HTTP::path]] contains "/myury" and[ACCESS::session data get "session.logon.last.username"] eq "" and [HTTP::cookie "MRHSession"] ne ""} { Some 200 respons and hangup of session via hidden frame /vdesk/hangup.php3}
Not the cleanest way of doing things but it works. Strange thing is that ACCESS:disable seems to throw "page cannot be displayed" errors when users do not browse myuri.
ACCESS::session remove kills the session without notifying the end user.
Many thanks for your replies guys.
Martijn
- Michael_Leonha1Sep 04, 2013NimbostratusI thought I had the same problem, every time a uri contained /private/ I need to use APM to authenticate the user. Maybe my approach is flawed, but I created 2 irules and ordered them on the virtual server, the first irule was: when HTTP_REQUEST { ACCESS::disable} the second irule was: when HTTP_REQUEST { if { [string tolower [HTTP::path]] contains "/private/"} { ACCESS::enable}} So far things seem to be working like I want, but I am not sure what I am doing is technically the correct way or what the pitfalls of doing it that way are.