I am looking for advice/best practice for an FB3 application that
consists of nested applications and uses role-based security/redirect.
After validating a user for CourseNet (app posts structured content to a
web site for educational puposes) they are redirected to an a page
appropriate to their role, e.g., student, instructor, course admin.
Example of code (that works but is not "true" FB logic) in fbx_Switch
file below:
<cfcase value="user_ck">
<cfinclude template="qry_user_ck.cfm">
<CFIF IsValidLogin.RecordCount IS 0>
<CFLOCATION URL="index.cfm">
<CFELSE>
<CFINCLUDE template="act_set_user_var.cfm">
<CFINCLUDE template="qry_history_update.cfm">
<cfswitch expression="#Session.class#">
<cfcase value="2">
<CFLOCATION URL="../examnet/AdminHome.cfm">
</cfcase>
<cfcase value="3">
<CFLOCATION URL="../examnet/AuthorHome.cfm">
</cfcase>
<cfcase value="1">
<CFLOCATION URL="../examnet/SysAdminHome.cfm">
</cfcase>
<cfcase value="4">
<CFLOCATION URL="#Session.site_path#">
</cfcase>
</cfswitch>
</cfif>
</cfcase>
The Session.Class variable determines role. The Session.Site_Path
variable determines the group specific sub-site to which a student is
redirected.
CourseNet is a distinct set of code that controls posting of content for
each sub-site. ExamNet is a stand-alone set of code for creating,
administering and grading examinations for a group.
Initial rediect should send a user to an appropriate starting point
within CourseNet or ExamNet. The way I've coded thus far will do that
but the last step in the process takes them out of a true FB3 paradigm.
Suggestions on best pratice in this situation?
Thanks,
Greg Buffone
Baylor College of Medicine
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================