> the cflocation will preclude any client side code (HTML or JS) from
> displaying.
>
> use a JavaScript redirect.
>
> <cfif NOT structKeyExists(session, 'appfee')>
> <script type="text/javascript">
> alert('your session has expired');
> <cfoutput>location.href="http://olympus.scs.jhu.edu/#session.
> URL#/admissions/";</cfoutput>
> </script>
> <cfabort />
> </cfif>
>
> On 9/21/07, erik tsomik <[EMAIL PROTECTED]> wrote:
> > I am trying to show the alert saying that the session is expired and
> redirect then to home page. I got this working except I do not see the
> alert
> >
> > <cfif not isDefined("session.appfee")>
> >
> > <script type="text/javascript" runat="server">
> > alert ('your session has expired');
> >
> > <cflocation url="http://olympus.scs.jhu.edu/#session.
> url#/admissions/" addtoken="no">
> > </script>
> > <cfabort>
> > </cfif>
> >
> >
The code eis working. Thanks a lot. I was just wondering is that possible to
display a message saying that session is expired and you will be redirecting in
5 sec
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289120
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4