Clearing Session and/or App variables with Log-out Page?

Greetings
I have 3 distinct user types for my app- admins, appraisers and clients.
All have their own directories and each directory has it's own Application.cfm:
1) <cfapplication name="appraiseri"
applicationtimeout="#CreateTimeSpan(0,2,0,0)#"
clientmanagement="Yes"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,2,0,0)#"
SetClientCookies="Yes">
2) <cfapplication name="appraiserview" ......
3) <cfapplication name="clientview" .......
Each have their own login which simply uses their ID in the DB as the session variable.
login_do.cfm:
1) Appraisers: <CFIF auth_direct_appraiser.RecordCount NEQ 0 >
<cfset Session.appraiser_user_id =auth_direct_appraiser.appraiser_ID>
<cfset Session.appraiser_fname =auth_direct_appraiser.appraiser_fname>
<cfset Session.appraiser_lname =auth_direct_appraiser.appraiser_lname>
2) Admins: <cfset Session.user_id =auth_direct.staff_ID> ......
3) Clients: <cfset Session.processor_user_id =auth_direct_processor.processor_ID>
I have had a session persisting for a week now- I have no idea how to get rid of it, and if one simply hits the "login" submit button with no UN or PW, it runs a query on a client (the same one) ?
My logout page is not working at all- if the code were correct, it would clear any session variable? I have not really set an app variable (except timeout) so no need to clear that?
Here is the code:
<CFLOCK SCOPE="Session" TYPE="Exclusive" TIMEOUT="60">
    <CFLOOP COLLECTION="#Session#" ITEM="Key">
        <CFIF NOT ListFindNoCase('IveSeenIT', Key)>
            <CFSET StructDelete(Session, Key)>
        </CFIF>
    </CFLOOP>
</CFLOCK>
<SCRIPT LANGUAGE="JavaScript">
    alert("You have been logged out from the XXXXX Intranet")
    location.href='login.cfm';
</SCRIPT>
Any help would be appreciated- this is leaving a huge security gap in the app right now.
Thanks

It in unnecessary to delete session keys to invalidate them. With proper coding they should be invalidated once the session times out.
Sessiontimeout values are usually around half an hour and applicationtimeout values are usually of the order of 1 day. Also, one way to relate session to login is to use the loginStorage attribute. If you have no need for client management, switch it off.
Hence, for example,
<cfapplication name="appraiseri"
applicationtimeout="#CreateTimeSpan(1,0,0,0)#"
clientmanagement="no"
sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
SetClientCookies="Yes"
loginStorage="session">
I am assuming that, for login and logout pages, you will - ignoring the details - have something like
Login:
<cflogin>
        <cfloginuser name = "some_name" password = "some_password"   roles = "appraiser"/>
</cflogin>
Logout:
<cflogout>

Similar Messages

  • RE: Downloading and updating apps. I log in correctly and agree as required; but immediately I am timed out and cannot complete the update or download. Checked on my PC, my password is correct.

    Re: Downloading and updating apps. I log in correctly and agree as required. But before a download happens i get a message "session timed out" and I cannot complete the download. This happens in a matter of seconds. Anyone?

    Have you checked to see if you credit card is out of date?  You may need to update your credit card on file.......

  • I saturated all the available iPad (3rd. generation) screen space (home screens or desktop space) with apps, and the apps that got bumped out of the last screen, mysteriously disappeared? Where are those missing quick lauch app icons?

    Running my 3rd generation iPad on iOS 7.0.4, I saturated all the available iPad screen space (which would be the 15 home screens or desktop worth of space) with apps, and the apps that got bumped out of the last screen space mysteriously disappeared. Where are those missing quick lauch app icons now? The apps are still installed and can be searched/accessed through the finder, but they no longer have a user friendly access. How can I solve this problem?

    Christopher Doryan wrote:
    Hi Hexonxonx, thanks for trying to help, but next time please read the entire discussion, in oder to better comprehend what is being asked. The reason being is that your answer added nothing to what had already been mentioned.
    Like I said, I was aware it was possible to access the apps through the finder, but the question revolved around how to recover the quick launch app icons for certain vanished apps.
    Wow, kind of a snotty response to someone who was taking their own time to offer help.  Whether you thought it was helpful or not, didn't deserve such an unkind retort.  Maybe when you realize we all just users here trying to help others like you, who have issues and we don't get anything in return for the countless hours some people here spend offering that assistance, you'll maybe be a little less quick to be critical.
    Just sayin.......
    Oh and Meg offered the right answer.  Put your Apps in Folders, which will create extra space for the apps which have disappeared.

  • "KERN_INVALID_ADDRESS at 0x000000ac" I am facing this issue after updateing my device to ios 5 and my app crashes with this error

    "KERN_INVALID_ADDRESS at 0x000000ac" I am facing this issue after updateing my device to ios 5 and my app crashes with this error

    "KERN_INVALID_ADDRESS at 0x000000ac" I am facing this issue after updateing my device to ios 5 and my app crashes with this error

  • Help. I have a Google Hangout in 40mins and my sound seems to have vanished. I went to Sys Prefs and it came up with Digital Out....and the Internal Speakers option is no longer there. How do I reboot, or fix this please?

    help. I have a Google Hangout in 40mins and my sound seems to have vanished. I went to Sys Prefs and it came up with Digital Out....and the Internal Speakers option is no longer there. How do I reboot, or fix this please?

    There are many possible causes for this issue. Take each of the following steps that you haven't already tried. Some may not apply to your model. Back up all data before making any changes.
    1. Start with the steps recommended in this support article. Don't skip any of the steps. It's the starting point for further efforts to solve the problem.
    2. Make sure you have a fully up-to-date installation of OS X.
    3. If you've installed an application called "Memory Clean" or any other third-party software that is supposed to "clean" or "purge" memory automatically, remove it according to the developer's instructions and restart. You should do that even if the software is not causing the problem, because it's useless.
    4. Other third-party software that has been reported to interfere with sound output includes "Boom" and "Samsung Kies." If applicable, uninstall according to the developer's instructions (not by dragging something to the Trash.)
    5. If an AirPlay device is selected for sound output from iTunes (or from other applications via third-party software such as "Airfoil"), deselect it.
    6. Launch the application "Audio MIDI Setup" by entering the first few letters of its name in a Spotlight search and selecting it in the results (it should be at the top.) Select Built-in Output from the list on the left. If the Mute boxes are checked, uncheck them.
    7. If a red light is visible in the audio-out port when sound should be playing, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a mini-stereo jack of the proper size. If not, the machine needs to be serviced. Inserting any kind of tool in the port may cause damage that won't be covered by the warranty.
    If there's no red light, the switch may still be stuck in the headphone position. Try to free it the same way.
    8. Disconnect all wired peripherals except keyboard and mouse, if applicable. If more than one display is connected, disconnect all extra ones. Restart and test.
    9. If you have a MacBook Air, turn off Bluetooth and restart.
    10. Start up in safe mode. Don't log in; just restart as usual when the login screen appears. When you do, make sure the words "Safe Boot" do not appear in the login screen. If they do, the system is still in safe mode and sound won't work.
    11. Reset the NVRAM.
    12. Reset the SMC.
    13. Triple-click anywhere in the line below on this page to select it:
    /Library/Preferences/Audio
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Restart the computer and empty the Trash. Recreate your settings in the Sound preference pane.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    14. Reinstall OS X after backing up all data.
    15. Make a "Genius" appointment at an Apple Store.

  • HT201356 I have accidentally deleted my alternate iCloud (email) address. Are there any possibilities to retrieve it back because my iPad is connected to that email address, and now, I can't log out from it on my iPad, because it doesn't exist?

    I have accidentally deleted my alternate iCloud (email) address. Are there any possibilities to retrieve it back because my iPad is connected to that email address, and now, I can't log out from it on my iPad, because it doesn't exist.
    I have alternate icloud email attached to my iPad and I accidentally delete it from appleid.apple.com. And now I can't log out that iCloud account because it doesn't exist and it can't recognize my password.

    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple IDand that ID is a previous version of your current ID, not an entirely different one.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details and some other circumstances.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device. It may take a short while to remove the account.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • HT204053 I purchased an iphone second hand and it was clearly stolen and now I could possibly be out of $300. I've called the owner to see what we could figure out and she has not answered. Is there anything I can do? Or am I out of $300? Please help!

    I purchased an iphone second hand and it was clearly stolen and now I could possibly be out of $300. I've called the owner to see what we could figure out and she has not answered. Is there anything I can do? Or am I out of $300? Please help!

    If the repair shop was not apple certified repair shop then Apple will not replace/ or touch that device with a ten foot pole sadly. I'd follow Rudegar's advise and try anthoer repair shop as sadly it sounds like you got jipped by the original owner. Always verify your infomation through the company before you hand over the money!

  • I have not been able to use iTunes for several months.  Every time I open iTunes, it freezes by computer such that there is about a minutes between each action.  I am running iTunes 11 on Mac OS 10.6.8 and have a computer with maxed out memory.

    I have not been able to use iTunes for several months.  Every time I open iTunes, it freezes by computer such that there is about a minutes between each action.  I am running iTunes 11 on Mac OS 10.6.8 and have a computer with maxed out memory.  Help!  I can't access my iTunes content.

    I have not been able to use iTunes for several months.  Every time I open iTunes, it freezes by computer such that there is about a minutes between each action.  I am running iTunes 11 on Mac OS 10.6.8 and have a computer with maxed out memory.  Help!  I can't access my iTunes content.

  • My MacBook Air is stuck in iPhoto and won't let me log out it says its downloading pics to the library but it not - can anyone help me to escape out of this?

    My MacBook Air is stuck in iPhoto and won't let me log out it says it is downloading pics into the library but it is not - can anyone help me escape out of iPhoto?

    Apple menu ==> force quit
    Post back if you have trouble after quitting and rebooting your MBA
    LN

  • Is there any way i can go back to iOS6 on my iPad 2? IOS 7 is awful, slow, ugly and my apps keep on blinking out mid use.

    Is there any way i can go back to iOS6 on my iPad 2? IOS 7 is awful, slow, ugly and my apps keep on blinking out mid use.

    Sorry, downgrading is not supported.

  • I clicked on Sky go app to install on Sat .It is now Monday night and the app Icon is greyed out and displaying "waiting". Anybody got any ideas?

    I clicked on Sky go app to install on Sat .It is now Monday night and the app Icon is greyed out and displaying "waiting". Anybody got any ideas?

    Often, rebooting, or deleting the waiting app and re-installing, will do the trick.
    Matt

  • I'm trying to log into my creative cloud, it accepts my log in info and says I've been logged out. How can I fix this?

    I'm trying to log into my creative cloud, it accepts my log in info and says I've been logged out. How can I fix this?

    Sign Out When Sign In http://forums.adobe.com/thread/1450581?tstart=0 may help
    -and http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html
    And, just in case you ever have this problem...
    BLANK Cloud Screen http://forums.adobe.com/message/5484303
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html

  • Yesterday I updated to FF6, today all the sites and emails I use, were logged out, that's quite a few, it was a pain to remember all PW's. Why did this happen? Will it reccur?

    Yesterday I updated to FF6, today all the sites and emails I use, were logged out, that's quite a few, it was a pain to remember all PW' and user names. Why did this happen? Will it reoccur?

    Yesterday I updated to FF6, today all the sites and emails I use, were logged out, that's quite a few, it was a pain to remember all PW' and user names. Why did this happen? Will it reoccur?

  • I just bought a used iphone 5 and i am stuck with the icloud page because the old owner dont remember his password what should i do ?

    i just bought a used iphone 5 and i am stuck with the icloud page because the old owner don't remember his password what should i do ?

    Ask him for your money back.
    Pete

  • My web screen is frozen (grey shaded) and will not let me close out page.

    my web screen is frozen (grey shaded) and will not let me close out page.  4 pages open now.

    Tap the home button to go to the home screen. Then go to Settings>Safari>Clear history, Cookies and Cache. Restart the iPad. Hold down on the sleep button until the red slider appears and slide to shut down. then press the sleep button and hold until the Apple logo appears. Let go of the button and let the iPad boot up. Try Safari agin.

Maybe you are looking for