With the example below if I visit http://sitename/test.cfm?no=3 and I am not logged in to view the content on that page. i.e. (session.permission) has not been set
The page content displays and does not redirect ? How could I modify the <cfif below to check that if a user visits http://sitename/test.cfm?no=3 and is not logged in they are redirected to the index.cfm page but if they are logged in they can view the content. And if a user visits http://sitename/test.cfm?no=2 or http://sitename/test.cfm?no=4 etc the page content displays as normal without any restrictions. <cfparam name="url.no" default="0"> <cfset request.restrict = "3"> <cfif listfind(request.restrict,url.no) and comparenocase(session.permission,"admin") neq 0> <cflocation url="index.cfm"> </cfif> Page content <cfinclude template="pages/#url.no#.cfm"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212365 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54