Hey guys,
I am new to Coldfusion so please forgive me for any silly questions.
I am making website where users will have different level of rights. There are pages that I want only Admin to view, there are pages that I want only Admin and Supplier to see and there are pages that every user can see.
My logic for this was I will have user_leve field in database (ie. 0 for normal user, 1 for supplier and 2 for Admin). On every page I will include little Authentication page (simple condition, allow if user_level is > 0 allow to view page, so supplier and Admin can view the page)
Now here is the issue, When user login successfully I want to set some variable values in application.cfm (like user name and user_level) so I can use them later on for authentication.
Big Question:
[LIST=1]
[*]How to set value in Application.cfm when user login?[/LIST]
- How to retrieve it when authentication?
Sorry, about the long message. Thanks for reading and your helps in advance.