Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IsUserInRole

Status
Not open for further replies.

monsemillis

Technical User
Jun 4, 2004
8
US
Is there a way to use the IsUserInRole if you are using session variables?
 
Sure, how exactly are you wanting to use it?

Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
I have a user log in....I want to assign each user a role...then depending on their role the appropriate menu buttons will appear. For example...if user was in role "admin" the admin menu button will show etc...

Thanks for all the help.
 
When they log in, set the roles in the <cfloginuser> tag. Then, whenever you need to verify a user's role, just use something like:
Code:
<cfif IsUserInRole("Admin")>
...code goes here...
</cfif>



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Thanks! I wasn't sure if you could use <cflogin> when using session variables....makes sense though. I appreciate you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top