OnSessionEnd actually doing anything?!

i want to do something very simple: when session expires, automatically redirect to a login page.
onSessionEnd looks like the logical choice, but i wasn't able to make it do anything at all!
any example that can show this function can do stuff is welcome, i've tried a bunch of them already, nothing works.
<cfcomponent output="false">
    <cfset this.name="testApp" />
    <cfset this.sessionManagement = true />
    <cfset this.applicationTimeOut = CreateTimeSpan(0,0,0,20) />
    <cfset this.sessionTimeout = createTimeSpan(0,0,0,20) />
    <cfset this.clientManagement = true />
    <cffunction name="onSessionEnd" access="public" returntype="void" output="false">
        <cflocation url="login.cfm">
    </cffunction>
</cfcomponent>

Think through what you're suggesting.
A session times out after an inactivity people, so intrinsically doesn't (and can't!) happen as part of a request... because a request implies activity. To redirect a request... there needs to be a request being made. But there is no request being made when a session times out.
You cannot interact with the browser in onSessionEnd(), because onSessionEnd() isn't - by definition - connected to browser activity.
What you want to do is to redirect to the login page when the session starts, not when it ends. Intrinsically the request after a session has ended will start a new session... and the redirect to the login page.
Make sense?
Adam

Similar Messages

  • Why does my fan go into high speed noisy mode sometimes when I'm not actually doing anything on my laptop?

    why does my fan go into high speed noisy mode sometimes when I'm not actually doing anything on my laptop?

    Probably Spotlight is indexing your HD? To stop this indexing, have a look here:
    http://www.thexlab.com/faqs/stopspotlightindex.html
    marek

  • Is Eloqua actually doing anything with Ideas Exchange?

    I don't want this post to come across as brash, just wanted to spark some discussion.
    I'm a fairly new Eloqua customer, and part of the onboarding included promotion about the new topliners community and the Salesforce.com driven Ideas Exchange.
    I was looking through the ideas that had more than 100 points, and I couldn't find any where a (identified) representative from Eloqua has openly commented.  Additionally, it does not appear that any suggested idea has ever come to fruition.  Is this a misperception?  It seems like there used to be another solution in place before they went to this new platform - what have some of you long time users experienced?
    I've periodically voted, commented, and posted a couple ideas of my own; I'm trying to figure out my expectations and don't want to judge too hastily.
    Thoughts and experieces with feature requests / suggestions?

    They do, as we have received news about their roadmap and some of the ideas in the Exchange are in it (the one I'm thinking about specifically is better security around assets, including Themes--yea!).  As someone who works in the development/solutions side of the business, it gets complicated so I understand that the top rated ideas may not always make it immediately into the next release.
    But on a side note, it is also my understanding that the higher the promotion points are, the more likely it will also end up in front of the product managers to consider. 
    Of course, as anyone in marketing knows , the object is to drive your "customer" to an action... you have to SELL your idea to get it promoted. 
    I've read many ideas out there that I wonder exactly what the person means or wants because it's so vague.  That does not exactly encourage me to promote an idea. (I do semi-regularly surf through them to see if there are any my users that I support would be able to use or need, etc..)  You can't just assume that everyone knows what you're talking about--or what the value add is of that particular idea.
    And even if ELQ product managers do look through all of the ideas, like any developer, they do also need to see the value add as well.
    Just my two cents...

  • TS4009 set up my new iPhone 5S 6 hours ago - when go to Music it says "Loading iTunes Match-" now status bar - how long does it take?  how can I see the progress or status of the Load?  I don't know if it is actually doing anything

    How can I find the status of loading iTunes match?  I set up my iPhone 5S over 6 hours ago and still no music.  No status bar - I don't know if anything is even downloading

    Welcome to the Apple Community.
    It shouldn't take anywhere near that, I'd try again, make sure you have a good connection.

  • I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself.  What's going on?

    I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself.  What's going on?

    He meant post it here, of course, Louie!  How on Earth would you post it "on Photoshop" ? 
    Thank you for the belly laugh. 

  • When I download applications such as Internet Explorer, Yugma, and iTunes in Firefox, I just get a window that says "save" or "cancel", but never one that says "run" so I don't think it's actually installing anything. Then when I try to open whatever I d

    When I try to download applications such as Internet Explorer, Yugma, and iTunes in Firefox, I just get a window that says "save" or "cancel", but never one that says "run" so I don't think it's actually installing anything. It shows up in a "download" window, then the icon shows up on my desktop. When I click on it to launch it, it says "open with" and I get the same "save/cancel" window. It's a continuous circle. What am I doing wrong??
    == This happened ==
    Every time Firefox opened
    == I don't know. I never downloaded apps through Firefox until all of a sudden Internet Explorer didn't work. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)

    What application are you choosing to open the files with?
    Because of how integrated it is with windows IE should work. If it's not working, something more widespread could be wrong with your computer that would also prevent other browsers from working properly. Of course we'd love you to stick with Firefox, but you should get help with IE, too.

  • Redirect rule not doing anything

    Note that the email account the the follwing applies to is a gmail account
    I have a rule in Mail that sends all emails from Macworld, Mac-Forums, and MacWeek to a folder (OK, a label in gmail parlance) and flags it "green" (so I can find them easliy and read them later).  Problem is the rule is not doing anything.  Ideas?

    Doesn't work for three days, but as soon as I post a message it starts working.  #sigh
    Actually, restarting the Mail program seemed to fix it.

  • I came home and i came home and my iphone is now frozzen on the applmy iphone is now frozzen on the apple screen and it hasnt been doing anything i put it in the charger and its not doing anything how do i get it to work so i can  text and call and stuff

    i came home and my iphone is now frozzen on the apple screen and it hasnt been doing anything i put it in the charger and its not doing anything how do i get it to work so i can  text and call and stuff

    I got to that page but clicking on the Subscribe Free had no effect.
    Nothing showed in the Podcasts nor the iTunes U.
    In fact I also subscribed to Stanford's lectures and despite actually managing to DL them there is still no subscription in iTunes U, just the Intro to Computer Science belatedly.
    Peter
    I'd like to attach the screen grab of the out of order and randomly DLed selection of Harvard's course, but the forum won't let me attach it even though it is only 456k. Correction, close post and retry and now it lets me. NB how intermittent the DLs are and in no particular order.

  • EBuyNow - has anyone actually received anything fr...

    Hi everyone,
    In early October I purchased the Freetalk camera for a Sharp Aquos TV from ebuynow. At this point they were showing out of stock with an expected delivery date of October 13th. October 13th my EBuynow account said "At warehouse - Will ship shortly".
    On October 17th asking what was happening - at which point I was told the cameras will only be in stock on November 5th (so why did it say at warehouse?) and received $2 skype credit as a gift. I was a bit annoyed, but could cope with another 2 weeks wait.
    November 1st, I receive an email saying these devices will only be in stock on November 20th. On the 20th, I tried to logging into my account to see what was happening, only for their system to say it didn't recognise my account. Even trying to reset my password returned an "account not found" message.
    As a result, I emailed them asking what xxx xxxx was going on (I've been waiting a month for this camera and keep getting dicked around) only for them to reply stock is now arriving on December 5th. Went on their website to confirm and their website says stock arriving on December 6th - so I have a feeling I'm going to get screwed over on this again.
    Has anyone actually received anything from ebuynow? Or should I just ring my credit card company and get them to reverse the charges? For me it seems the only thing this "global logistics company" does well is take your money.

    Hello,
    We have asked eBuyNow to investigate your order status.
    Normally this supplier performs well and resolves customer queries promptly.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Visual alert that mail app is actually doing something!

    When I press 'Get mail' I see no visual confirmation that Mail is actually doing something such as the spinning connect wheel beside each account as the app checks that account in earlier versions of Mail up to Snow Leopard.

    Thanks Eric, now I know, seems like I now have no option but to move to Postbox when I would have preferred to stick with mail for syncing. I have come from a MBP running Snow Leopard so I have no experiance with OS after that until this.
    The problem is I have not had any connection to the internet a couple of times and pressed 'Get mail' but Mail has not reported anything or any error, makes me not trust the application, already it makes my think that there are problems and Apple covers them up by just not informing you to it checking accounts etc. True or not I have difficulty understanding why this would not be part of a normal working application, it has been the objective of software developers to inform users of everything that is helpful for them, even Apple has notification this notification that but most intuitive interaction with the user in Mail has been removed.... seems odd. I am getting more and more dissapointed with Apple apps.

  • HT4796 Just started a migration from my PC to new air and it says copying but neither computer appears to be doing anything. Is it working?

    If both machines say copying but neither one appears to be doing anything, is it working? It hasn't given me a time yet but I got through the password part fine and they're connected. I selected the folders to transfer and it says its copying the first one... but it doesn't actually seem to be. Help!

    if it's music then drm is not used there any more and drm can be removed from previously bought drm material without cost

  • My iphone 5 keeps crashing all the time and has a delay of about 3 seconds when doing anything on it i did a factory restore on it but it didnt fix the problem

    my iphone 5 keeps crashing all the time and has a delay of about 3 seconds when doing anything on it i did a factory restore on it but it didnt fix the problem i went to optus to see if they could help me as my phone is through them but they knew nothing i need help please my phone is only 8 months old

    Plug the device into a wall outlet and leave it for about 20 minutes. If it has not powered on at that point try a reset by pressing and holding the home and power buttons for about 15 seconds until the white Apple logo appears.

  • My voice control keeps coming up without me even doing anything

    Ipod 4th generation
    My ipod's voice control keeps coming up without me even doing anything and when I cancel it/it cancels itself, my music library starts to play. I have an app to listen to video songs on and it keeps on stopping because of this problem. My Ipod works at a very slow speed now as well, it takes ages to type and it doesnt move very fast either. I NEED A SOLUTION FOR THIS PLEASE!!
    thanks xx

    Is your home button damaged on broken? Try closing apps in the multitasking bar (press the home button 2x times)
    Reset (Hold both buttons till the iPod restarts - no data will be deleted) and restore it (all data will be deleted - full restore!)
    If that ain't helping, take it to an Apple Store.

  • Does iDVD work with Maverick? This is the first time I tried to burn a DVD using iDVD after upgrading to Maverick. It seems to get stuck at encoding menu stage and not doing anything.

    I tried to burn a DVD using iDVD after upgrading to Maverick, first time I tried after upgrading to Maverick a few weeks ago. It seems to get stuck at encoding menu stage and not doing anything. Does anyone else have the same problem?

    I did not have a DVD handy to burn but I have just created a small 2 minute video and created a Disk Image and also a VIDEO_TS folder, the encoding worked correctly, so it works with some items.
    You may get a better responce in the iDVD forum.
    https://discussions.apple.com/community/ilife/idvd
    regards

  • Hello, i have updated my iphone 5 black 16 gb to ios 7 ios 7.0.2 (11a501) and my battery has become worse it gives 9 hours of usage with out doing anything, i have done everything i tried, not using my iphone as well but still no change at all!

    hello, i have updated my iphone 5 black 16 gb to ios 7.0.2 (11a501) and my battery life of my iphone has become worse it gives 9 hours of usage with out doing anything, i have done everything every tip that is available online i had 3gs and 4s so i know how to save battry life,i even tried  not using my iphone as well but still no change at all!. i have upadted to ios 7.0.3 then downgraded it , i thought battery may be an issue ,so i put  brand new battery still no change , so what should i do ? , update to the latest version which is ios 7.0.4 or wait for the ios 7.1 , i was using iphone 4s running on ios 6.1 it gave me 3 days of battery timing , iphone 5 seemed to be very bad for me ,help ! ?
    its facory unlocked btw

    Try to do a reset, if it doesn't work try remove recently added apps this may solve your problem ( like google app because it has happened with me)
    Take a look at apps using your location service in privacy, it can cause battery draining.

Maybe you are looking for