Question
Role Declaration Erroe
Hi,
I am getting the following error with the following code.
I have a Header.cfm which has some different tabs. For this application there are different type of users(Administrator, Constructor...for which the tabs on header.cfm varies)
<cfif Session.Role EQ "Constructor">
<td background="images/head.jpg" ><a href="demos/Demos.htm" target="_blank" class="navLink">Check Demo</a></td>
<cfelseif Session.Role EQ "Administrator">
<td background="images/head.jpg" ><a href="Administrator.cfm" class="navLink"> Administrator</a></td>
</cfif>
If use the above code, some time the following error appears which occurs ocassionally..
Element ROLE is undefined in Session at line <cfif Session.Role EQ "Constructor">
in the above code. could you please help me out in this issue
I am getting the following error with the following code.
I have a Header.cfm which has some different tabs. For this application there are different type of users(Administrator, Constructor...for which the tabs on header.cfm varies)
<cfif Session.Role EQ "Constructor">
<td background="images/head.jpg" ><a href="demos/Demos.htm" target="_blank" class="navLink">Check Demo</a></td>
<cfelseif Session.Role EQ "Administrator">
<td background="images/head.jpg" ><a href="Administrator.cfm" class="navLink"> Administrator</a></td>
</cfif>
If use the above code, some time the following error appears which occurs ocassionally..
Element ROLE is undefined in Session at line <cfif Session.Role EQ "Constructor">
in the above code. could you please help me out in this issue