Islogged on question, need help

Hello;
I wrote a small app that makes the user log into it to get to
features. I wanted to know how would I go about letting a user that
logs into it, know that other users are logged in at the same time?
They have to be added to the usermanager that is part of a
DB, it is also controled by sessions in cf8.
How would I write a script that would say:
user1 is logged on
user2 is logged on
As many users that are logged on in a list.
Can anyone help me out with this?
Thank you.
CFmonger

This is what I am looking for. BUT when I add the code to
mine, I get an error. It is saying that
Element SESSIONTRACKER is undefined in APPLICATION.
The error occurred on line 16.
I tried adding my code for teh application.cfc file to both,
my main application file as well as the one that is in the
protected directory I am trying to use the session tracker in.
This is my code in the application.cfc file in the protected
directory:
<cfcomponent output="false" extends="ProxyApplication">
<!--- this is supposed to define sessiontracker in the
application.cfc file --->
<cfparam name="application.sessionTracker"
default="#StructNew()#">
<!--- end sessiontracker --->
<cffunction name="OnRequestStart">
<cfset super.onRequestStart() />
<cfif IsDefined("COOKIE.CFID") AND
IsDefined("COOKIE.CFTOKEN")>
<cfset cfid_local = COOKIE.CFID>
<cfset cftoken_local = COOKIE.CFTOKEN>
<cfcookie NAME="CFID" VALUE="#cfid_local#">
<cfcookie NAME="CFTOKEN" VALUE="#cftoken_local#">
</cfif>
<cfif not StructKeyExists(session, 'isValidUser') or not
session.isValidUser>
<cflocation url="../sitemanager.cfm" addtoken="yes">
</cfif>
</cffunction>
<cffunction name="onSessionStart" returntype="any"
output="true">
<!--- this is sessiontracker code for application.cfc
--->
<cfif isDefined ("session.login_id")>
<cfset dummy = structInsert(
application.sessionTracker,
session.login_id,
now(), true)>
</cfif>
<!--- end sessiontracker --->
</cffunction>
</cfcomponent>
What am I doing wrong? how is it not defined in
application.cfc?

Similar Messages

  • Question: Need help with overcoming the following message:  "Nothing was imported.

    Need help with overcoming the following message:  “Nothing was imported.  The file(s) or folder(s) selection to import did not contain any supported file types, or the files are already in this catalogue”.
    The photos being scanned are old film shots.  They have NOT been previously scanned.  I am using Photoshop Elements 9 software.
    QUESTION:  how do I override this STOP and or circumvent the photo comparison option????
    Thanks for the help. Bob K ---  [email protected]

      Are you scanning as jpeg, tiff or some other format?
    Are you using continuous numbering for files names as by definition scanned files have no exif data.
     

  • Long-time Eudora user, rookie Mail user--have questions, need help!

    Hi, all!
    As the subject heading says, I've been using Eudora for a very long time (way past its shelf life) and have been playing around with Mail off and on over the past year.  (Now, in Eudora's defense, the expiration date on it was a "Best by..." not a "Use by..." date   and it's been working fantastically for years! )
    I recently started to plunge into Mail more deeply and have a couple of questions.
    1. Drafting vs. queuing. 
    I am used to Eudora's system where a bunch of drafted messages sit in an Outbox.  They stay there until I flag QUEUE for the ones I'll eventually be mailing.
    It's a good system.  A quick look at the flags in the Outobx lets me know which I still to need to work on, and which ones are ready to go out (or need a final review before sending).   The user then selects "Send Messages" and it e-mails the ones queued in the Outbox, but not the remaining draft emails that haven't yet been queued.
    How do I set up something like that in Mail?
    Right now, all I have is a list of draft messages and I cannot tell which ones are still really drafts and which are ready to be sent!
    2.  Work-around to try and mirror Eudora's system.
    I tried creating a new mailbox called Queue, in which I can park the emails I've done editing.  Of course, the problem with such a scheme is that when I want to send messages, I either have to put them back into the Drafts mailbox, from where I can select and send everything (including ones I haven't finished editing!), or drag them into Mail's Outbox where they go out instantly.  That's a little freaky and I can see disasters happening (emails going out when I'm wanting to drag other messages to a different mailbox).
    3.  Disable auto-sending? 
    Is there a way of turning off and on the Outbox's automatic sending action?  That could be the simplest solution for me.  I'd really like to send messages only via a menu command--yet, from I've determined, Mail's Send menu command will send any messages selected in the Draft mailbox.  Again, I see screw-ups with that as the wrong draft could be selected and Mail would send it out. 
    4.  Display of badges for mailboxes.
    This is more of a curiosity, but is there a way of having a user-created mailbox show how many e-mails are in there?
    Solutions?
    What do you all do as to work flow?  How do you go about creating and revising a bunch of e-mails, but only sending out certain ones?  And ensuring that only the ones you want to go out, go out?!

    Thank you for posting all this info.  Unfortunately i have no idea how to do flags and how to use a smart mailbox as a place to store emails i am not ready to send.  Eudora is vastly superior in all the things it empowers the user to quickly and easily do, in the traditional Apple spirit of intuitiveness, clear direct normal (not esoteric) communicatioin and user friendliness.
    about three weeks ago i was pretty much forced into Mountain Lion bcause my old MacBook is barely functioning at all and i got a new MacBook Pro.  So, good bye Eudora that i've used since 1995, only because i couldn't find another mail program that did what it does.  I wonder why there aren't others.  I've tried MailForge, it's a great attempt but it seems to have run out of steam and isn't working well enough. 
    I am using Mail and Gmail. The result is i'm suffering a whole range of loss of functionality in email, and am not getting a lot of messages, they are here somewhere but i can't always find them, i have to go to my old computer, enduring a kind of freeze where a beachball is a sign of progress, a trackpad that barely works for drag and drop anymore and a battery that needs reaplacing. i think the hard drive is failing. but i still need it to retrieve my email reliably, to a poiint where i see i 'm going to have to put money into it so it can keep working, for email.  what a poor solution. I am trying as best i can to have Mail communicate better. 
    i just wanted to thank you for your encouraging posts and giving me something to follow up on to try to use, to address this one of many loss of Eudora problems. Why wouldn't a mail program give you the option to queue mail?   Why take away options and functionality?   sorry, i'm just ranting because i've had a very frustrating last few weeks related to numerous new OS challenges, but email is the only really serious one. 
    I really like your idea of badges to show number of new messages, i think that's what you meant, you didn't say 'new', but another great and helpful thing about Eudroa is sorting mail into mail boxes and opening those mailboxes that get new mail each time you download mail, so you kow what's new. You can immediately see it.  In Apple Mail, i find i have to dig through each of the 12 'on my mac' mailboxes/folders i created so far, to see if there is new mail in them. A lot of extra trouble for something that a superior email program can do for you.

  • Captivate 8 Quiz question need help!!!

    Hi,
    I am trying to create a quiz in captivate 8. When the user answers the question correctly, i want correct caption to show ( which is showing ) but i also want a trophy (image)  to appear to give the user a little motivation to go to the next question.
    If user selects the wrong choice of the multiple choice question twice, they will be directed back to the slide where the answer is ( remediation ) and from there i want the next button to change to 'return back to quiz button'
    Thats how i want quiz to be like.
    I have created the advance action to pop up the trophy (image) when user is right but then remediation doesnt work, means when they come back from the section where the answer is, they cant select the right answer as the quiz has not been reset.
    These are grave issues i am dealing with. If there is any solution to this, please kindly help me out. I would be really grateful if there is anyone to sort this out.

    Thankyou for your reply. Yes i tried that but once i preview that particular slide, the 'next button' takes time to go to the next slide ( like i have to click more than once to go to the next slide) and it is happening on every slide that has remediation on.
    So i thought i make a 'return button' that is only visible when the user comes back from the quiz. Not sure how to do that as i am already using advance action on quiz slides, On success on the quiz slide to show the correct caption and the trophy. And on last attempt they go back to the slide where the answer is but once they come back they can't select the answer ( its locked ) and remediation slides does not go forward as quickly as other content slides.
    I hope you understand what i mean ?

  • Rotated a picture went into savingbeen in savings for 3days cannot delete or get to my other photos  iphone 5s question need help

    question; on i pnone 5s  rotated a photo in my photos been in saving mode for 3 days cannot delete or cancel also can't get to any more of my pics

    Reset the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone should reboot and release the problem you are experiencing.

  • Iphone question, need help please!

    i have a iphone 3G s and my battery was charged full.  my son was playing a game and it just shut off by itself and i tried to turn it on nothing happened so i thought dang maybe the battery went dead already, tried to charge it and it is doing nothing at all.  can someone please help, not sure what to do??  thanks so much!!

    Try a reset ( covered in the basics section of the manual):
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Question Need Help

    I have an Ipod Video 30G. Im trying to put videos on but there is no audio. I know you have to convert something but i dont know what. If there's any programs i should download then that would be great. Please Help!

    Never Mind i figured it out it has to be exported as MP4 instead of MP2.

  • Big ipod-problem/question, need help!!! PLEASE!!!

    1.) I was transfering songs onto my 20 GB clickwheel ipod
    2.) Itunes hung up, first time.
    3.) I plugged the ipod out
    4.) next time i plugged it in, nothing worked, and everything on my ipod was GONE!
    5.) Now i don't have any songs on it, i have tried resetting, new ports and the normal thing
    6.) the songs ARE there, because both the on my computer, and on the ipod it shows that alot of GB's are used!!
    Please help!!!

    It would appear that the iPod hard drive has become corrupt and unreadable. This doesn't mean that the songs are not on your iPod, hence the fact that the iPod reports used space and iTunes may show them.
    You should restore the iPod and then reload the songs from iTunes.

  • Quick question need help

    Okay my problem is writing a code for payrole. I have to write the code to be 1.5 basepay for every overtime hour between 41 and 60, and be 2 times basepay for every hour over 60. I have done that, which isnt the problem....
    I am using a for loop to allow the user to select the number of employees they want to do at one time. However I am a bit perplexed. After the for loop is over I need to be able to add all the salarys together and come up with a total payrole salary, and I just do not understand how to do that, I will post my java code, sorry if its a little rough, I am just beginning.
    import java.util.Scanner;
    public class FigureWages {
         public static void main(String[] args){
              Scanner input =new Scanner(System.in);
              System.out.print("Enter Number of Employees= ");
              double NumbEmploy = input.nextDouble();
              for (int i = 0; i < NumbEmploy; i++)
                   System.out.print("Enter Employee Number= ");
                   double EmployNumb = input.nextDouble();
                   System.out.print("Enter Base Pay= ");
                   double basepay = input.nextDouble();
                   System.out.print("Enter Hours Worked= ");
                   double hours = input.nextDouble();
                   if (hours < 60 )
                        double overtime1= ((hours-40)*(1.5*basepay)) + (40*basepay);
                        System.out.println("Employee Number= "+EmployNumb);
                        System.out.println("Base Pay= "+ basepay);
    }     System.out.println("Hours Worked= "+hours);
                        System.out.println("Pay= " + overtime1);
                   else if (hours > 60)
                             double overtime1= ((hours-60)*(2*basepay))+(20*(1.5*basepay))+(40*basepay);
                             System.out.println("Employee Number= "+EmployNumb);
                             System.out.println("Base Pay= "+ basepay);
                             System.out.println("Hours Worked= "+hours);
                             System.out.println("Pay= "+ overtime1);
                   }

    now doesn't this look better?
    i changed one of your methods
    public class Member {
        private String firstName;
        private String lastName;
        private double heightInches;
        private double weightPounds;
        private int yearOfBirth;
        private int yearOfJoiningClub = 1990;
        private String membershipNumber;
        private int currentYear;
         * Constructor for objects of class Member
        public Member(String first,String last,double height,double weight,int birth,int join,String memberNumber,int curYear ){
            firstName = first;
            lastName = last;
            heightInches = height;
            weightPounds = weight;
            yearOfBirth = birth;
            yearOfJoiningClub = join;
            membershipNumber = memberNumber;
            currentYear = curYear;
        //Behaviors
        public String getFullName() {
            String full;
            full = firstName + " " + lastName;
            return full;
        public int calculateYearsJoined() {
            int yearsJoined;
            yearsJoined = currentYear - yearOfJoiningClub;
            return yearsJoined;
        public int calculateAge() {
            int ageOfMember;
            ageOfMember = currentYear - yearOfBirth;
            return ageOfMember;
        public int calculateAgeOfAtJoining() {
            int ageOfJoining;
            ageOfJoining = yearOfJoiningClub - yearOfBirth;
            return ageOfJoining;
        public boolean getsDiscount(){
            if(calculateAge() < 12) {
                return true;
            if(calculateAge() >= 65) {
                return true;
            if(calculateYearsJoined () >=10)
                return true;
            return false;
    }

  • Ipad mini retina question need help.

    I only have enough cash to get one or the other, Ipad mini retina 16gb cellular wifi or 32 gb wifi only, and I have unlimited data on my iphone so I plan to tether anyway, is there any other perks added to buying the cellular one if you just plan to tether?

    Get the 32GB wifi only.
    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/HT4517
    Use Bluetooth to tether your iPhone, iPod touch, or iPad
    http://www.macworld.com/article/1159258/bluetooth_tethering.html
    How to Connect an iPad to an iPhone Via Bluetooth Tethering
    http://techtips.salon.com/connect-ipad-iphone-via-bluetooth-tethering-25472.html
    Get a Mi-Fi http://en.wikipedia.org/wiki/MiF
     Cheers, Tom

  • Light leakage question, need help...

    I bought an iPad 4th Generation 3 weeks ago an it was fine or maybe I don't see any defects before... Then yesterday I started to notice the light leakage in several spot like on the left side of the screen and on the corner near the speaker... Is it fine or should I be worried about this?
    Would there be issues like this in iPad air? I'm planning to get a new one for my father next month.
    I am not thinking about getting it exchanged and just preferred to do something that might fix this issue myself since I bought it in macstudio store in Kuala Lumpur and now I'm staying in Yogyakarta (Indonesia).

      Are you scanning as jpeg, tiff or some other format?
    Are you using continuous numbering for files names as by definition scanned files have no exif data.
     

  • Re: Quick Question,  Need help with If else returns please!

    if(calculateYearsJoined () >=10)w(<-- Honda, Harley, BMW, Triumph, Ducati racer)

    now doesn't this look better?
    i changed one of your methods
    public class Member {
        private String firstName;
        private String lastName;
        private double heightInches;
        private double weightPounds;
        private int yearOfBirth;
        private int yearOfJoiningClub = 1990;
        private String membershipNumber;
        private int currentYear;
         * Constructor for objects of class Member
        public Member(String first,String last,double height,double weight,int birth,int join,String memberNumber,int curYear ){
            firstName = first;
            lastName = last;
            heightInches = height;
            weightPounds = weight;
            yearOfBirth = birth;
            yearOfJoiningClub = join;
            membershipNumber = memberNumber;
            currentYear = curYear;
        //Behaviors
        public String getFullName() {
            String full;
            full = firstName + " " + lastName;
            return full;
        public int calculateYearsJoined() {
            int yearsJoined;
            yearsJoined = currentYear - yearOfJoiningClub;
            return yearsJoined;
        public int calculateAge() {
            int ageOfMember;
            ageOfMember = currentYear - yearOfBirth;
            return ageOfMember;
        public int calculateAgeOfAtJoining() {
            int ageOfJoining;
            ageOfJoining = yearOfJoiningClub - yearOfBirth;
            return ageOfJoining;
        public boolean getsDiscount(){
            if(calculateAge() < 12) {
                return true;
            if(calculateAge() >= 65) {
                return true;
            if(calculateYearsJoined () >=10)
                return true;
            return false;
    }

  • I got new hard driver for my MacBook I don't have the cd but I do have flash drive that has the software I need help because when I turn on my laptop it shows me a file with question mark how can I install the software from the flash driver?

    I got new hard driver for my MacBook I don't have the cd but I do have flash drive that has the software I need help because when I turn on my laptop it shows me a file with question mark how can I install the software from the flash driver?

    Hold down the Option key while you boot your Mac. Then, it should show you a selection of devices. Click your flash drive and it will boot from that.

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • I just created an iCloud email and I want to use that email for my iTunes account as well. I need help suiting the old apple I'd because I do not remember anything associated with that email and I don't know the security questions

    I just created an iCloud email and I want to use that email for my iTunes account as well. I need help switching the old apple ID because I do not remember anything associated with that email and I don't know the security questions or the login for that old email.

    You cannot do that.  The AppleID you used to create the iCloud account is an active primary email address.  The email address you created with the iCloud account is also an active primary email address (all Apple domain email address automatically become AppleIDs as well).  You cannot replace the primary email address on one active AppleID with the primary email address on another, active AppleID.
    You can use your iCloud email/AppleID with iTunes, but it will be a separate account, so all your previous purchases remain tied to the other AppleID you have.
    I don't understand your statement that you could not remeber your old AppleID password, as you would have had to use it to create the iCloud account in the first place (the first step of creating the iCloud account required you to login with your existing AppleID and password)?

Maybe you are looking for

  • Lots of hang ups when using iPhoto in full screen mode

    Has anyone else got this problem or a solution? I find that iPhoto hangs up or give strange action when in ful screen mode. The other day, for example, I had two iPhoto windows showing, one in full screen and one normal window on the desk top! Anothe

  • N:m=1=53

    I know I have another post going unresolved, but if anyone can tell me what is this message "n:m=1=53" I keep getting in my inbox I appreciate it. I get a little nervous and start to think I'm letting in a virus or bug when I go in and delete it. PTL

  • How Can I Change the Ports for WebDAV file shares.

    Title says it all. I have another piece of software using port 80 and 443, I'd like to create iOS shares using WebDAV but I can't find anywhere in the GUI to change the port numbers and I can't work out whether I need to do something involving Apache

  • Changing enabled background images based on jpeg EXIF data.

    Hello, I have a huge mess of desktop backgrounds in a folder that I have been sorting through with exif keywords. I currently have it set up to cycle through every image, but it would be nice to enable or disable images in the slideshow based on thei

  • Spry menu-change links to carry through all 16 pages?

    I am sure this is easy to do. I just don't know where to begin. I have a 16 page website "northeastohioweddingexperts.com.   The side menu is the same on all 16 pages. Its a spry menu. What is the easies way to change the links so it changes through