Forum Discussion

Gary_Walderich_'s avatar
Gary_Walderich_
Icon for Nimbostratus rankNimbostratus
Sep 04, 2007

Redirect user upon logout iRule

How would I create an iRule that would enable a user to be immidiately redirected when they log out of the application.

 

 

Here is what I am looking to accomplish:

 

 

1:User logs all the way out of our SAP application.

 

 

2:Capture SAP response of launching SAPLogin.jsp

 

 

3:Redirect to abc_btf/ghi1.jsp

 

 

Also, how would I fit this in so that a Successful log out would allow the user to view previous pages, but does not allow interaction with the previous pages.

 

 

Does this make any sense?

1 Reply

  • Hi,

     

     

    Can you clarify what you mean by "launching SAPLogin.jsp"? Does the web application send the client a 302 redirect with SAPlogin.jsp as the Location header value? Or is it a javascript-based redirect? If it is a redirect, you could rewrite it by triggering on the HTTP_RESPONSE event and looking for HTTP::status of 302 with a Location header value that contains SAPLogin.jsp. If you confirm this is what is happening, the rule is pretty simple to write.

     

     

    As for preventing a user from interacting with previous pages, you could try clearing their cookies, if the SAP app doesn't do this already upon logout. Without cookies in subsequent requests, I would assume the SAP app would prompt them to log in again.

     

     

    Aaron