For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Mandrake's avatar
Mandrake
Icon for Nimbostratus rankNimbostratus
Apr 19, 2012

TCL Error:no such variable while executing

Hi

 

 

I have an irule which is working perfectly in version 10, however when i applied same rule on version 11.1, it started throwing TCL errors as follows:

 

 

pr 19 15:37:18 tmm1 err tmm1[7725]: 01220001:3: TCL error: /Common/Report_login_logout - can't read "static::sessionName": no such variable while executing "HTTP::cookie value $static::sessionName"

 

 

irule::

 

 

when HTTP_REQUEST

 

{

 

if user hits the root path, then delete the backend application's session

 

if {[HTTP::uri] equals "/"}

 

{

 

set thisCookie [HTTP::cookie value $static::sessionName]

 

if {not ($thisCookie == "")}

 

{

 

table delete $thisCookie

 

}

 

redirect to scp/login.jsp so that after logging in through APM the user would get

 

redirected tothe correct path on the SCP backend application

 

HTTP::redirect "https://report.landmarkeconnect.com/scpreport/login.jsp"

 

}

 

elseif {[HTTP::uri] starts_with "/renderer/access_notfound.php3"}

 

{

 

else if there was an access violation URI called then also clear the cookie

 

redirect to APM logout

 

HTTP::redirect "https://report.landmarkeconnect.com/vdesk/hangup.php3"

 

}

 

}

 

}

 

 

 

Any help is appreciated.

 

 

BR

 

2 Replies

  • pr 19 15:37:18 tmm1 err tmm1[7725]: 01220001:3: TCL error: /Common/Report_login_logout - can't read "static::sessionName": no such variable while executing "HTTP::cookie value $static::sessionName"did you forget RULE_INIT event?