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">
</cfif>

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

Thanks
anushaAsked:
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.

MauseCommented:

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

Mause
0
anushaAuthor Commented:
Hi Mause,

I guess that is what I am missing here?  

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



0
MauseCommented:

If that is the only action that shows the loginpage then that is what your missing
0
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.

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

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



0
jyokumCommented:
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">
</cfif>

0

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
jyokumCommented:
and mosphat is correct, your url string looks wrong
0
Jerry_PangCommented:
suggestion:

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

outside of global.cfm

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

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

<circuit>
<prefuseaction>
<do action="verifylogin"/>
</prefuseaction>

<fuseactions
<postfuseaction>
</postfuseaction>
</circuit>

(recommended)
you might want to try
http://downloads.fusebox.org/index.cfm?method=Fusebox4.download
Lets Make a Deal v4 by John Q
Im using this plugin on my coldfusion pages.
0
Jerry_PangCommented:
no luck?

post in fusebox forum. they may help you..
http://www.fusebox.org/forums/
0
anushaAuthor Commented:
let me try these options. I will get back to you all. thanks
0
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.