I'd upgrade to using Mach-II 1.8 (which is our latest stable release) and use the new redirectEvent() function in your filter:

<cfif loggedIn>
<cfset redirectEvent(nameOfEvent) />
<cfelse>
<cfset redirectEvent("login") />
</cfif>

The documentation is here:

http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/MachII1.8Redirect

hth,
.pjf


Christopher Jazinski said the following on 15/03/10 14:23:
Hello List

I have an application that I use a filter. A(to check if the user is authenticated or not) and if the user is not i will show the login page. The login page will call a method to authenticate then based on the event (the one that failed the filter) preform an anounceEvent('myEvent'. event args).. This works fine however; the URL will stay with ?event=processLogin How would I be able to change it to the event i announced. I want to make sure just incase users hit refresh the login method doesn't get rerun. Thanks.
--
You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/

--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/

Reply via email to