Forum Discussion

Kumar_Thota's avatar
Kumar_Thota
Icon for Altocumulus rankAltocumulus
Feb 17, 2020

Accessing Different URI Paths in the same APM Session

We have an issue with the session. User hit a URI path abc.com/abc and opens a new tab and try out a different URI path in the same session with out logging in the previous session and we get the e...
  • Kumar_Thota's avatar
    Feb 27, 2020

    Fixed it if anyone are in the same situation this fix will work

    when HTTP_REQUEST {

      if { ( [HTTP::cookie exists MRHSession] ) and not ( [ACCESS::session exists -state_allow [HTTP::cookie value MRHSession]] ) } {

        if { ( [HTTP::uri] ne [ACCESS::session data get session.server.landinguri] ) and not ( [ACCESS::session data get session.server.landinguri] eq "" ) } {

      ACCESS::session remove

          HTTP::redirect [HTTP::uri]

          TCP::close

        }    

      }

    }