fusebox4/cfmx session handeling/timeout issue

I am having a problem with cflocating users to the login page is the session var has expired.
in my myglobals.cfm (global plugin).
<cfif NOT IsDefined("session.loggedin")>
<cflocation url="#self#?cLogin.showLogin" addtoken="no">

This code makes the app go into an infinite loop and it will say exceeded url refresher amount.
Help me out ?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


I gues you also have to check if the action is not showlogin

anushaAuthor Commented:
Hi Mause,

I guess that is what I am missing here?  

#myFusebox.Originalfuseaction# is not 'showLogin' ??


If that is the only action that shows the loginpage then that is what your missing
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

I'm not familiar with anything after fusebox2, but shouldn't it read:

<cflocation url="#self#?fuseaction=cLogin.showLogin" addtoken="no">

you're on the right track. you need to make sure you're not currently trying to execute one of the login fuseactions

assuming your login action was cLogin.showlogin and it submitted to cLogin.validatelogin

<cfif NOT IsDefined("session.loggedin") AND refindnocase('^(showLogin|validateLogin)$',mfFusebox.originalFuseaction)>
<cflocation url="#self#?cLogin.showLogin" addtoken="no">


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
and mosphat is correct, your url string looks wrong

<cfif NOT IsDefined("session.loggedin")>
<cflocation url="#self#?cLogin.showLogin" addtoken="no">

outside of global.cfm

create a new fuseaction with that code.
sample verifylogin.cfm
<fuseaction = "verifylogin" >
<include value="verifylogin.cfm">

then on the circuit where you want to have a security login, insert that fuse on the prefuseaction of that cicuit

<do action="verifylogin"/>


you might want to try
Lets Make a Deal v4 by John Q
Im using this plugin on my coldfusion pages.
no luck?

post in fusebox forum. they may help you..
anushaAuthor Commented:
let me try these options. I will get back to you all. thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.