Re: LOG IN LOG OUT

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15234
interpreted = N
texte = >Hello, >I'm trying to solve this problem for a while: > When users enter someplace, they are written into a database containing 3 > fields: [date][T](time)[user]. >New user who enters is able to see who is already there because the entry >page contains: >[search db=users.db&eqdatedata=[date]] >[founditems] >[user]*[t]
>[/founditems] >[/search] >The problem is to show only users that are there at the moment, because >now it shows ALL the users that logged in that day. I want the users who >exited the system not to be displayed. I tried to use some math format to >display users that entered in the last 30 minutes, but then I have the same >problem with users who logged out after 5 minutes, etc.The web cannot tell you who is there and who is not, because no one is actually 'there' for more than the time required to download a web page and the graphics/sounds that are referenced on that page. So if the page is a text-only page, the person was actually 'logged in' for only a fraction of a second.In other words, you can't do what you want, you can only guess at it. Try recording the time each person requests a page, then display the time instead of the date. Then other users can try to figure out who's still there by looking at the last time they requested a page.Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Associated Messages, from the most recent to the oldest:

    
  1. Re: LOG IN LOG OUT (Kenneth Grome 1997)
  2. LOG IN LOG OUT (natasha 1997)
>Hello, >I'm trying to solve this problem for a while: > When users enter someplace, they are written into a database containing 3 > fields: [date][T](time)[user]. >New user who enters is able to see who is already there because the entry >page contains: >[search db=users.db&eqdatedata=[date]] >[founditems] >[user]*[t]
>[/founditems] >[/search] >The problem is to show only users that are there at the moment, because >now it shows ALL the users that logged in that day. I want the users who >exited the system not to be displayed. I tried to use some math format to >display users that entered in the last 30 minutes, but then I have the same >problem with users who logged out after 5 minutes, etc.The web cannot tell you who is there and who is not, because no one is actually 'there' for more than the time required to download a web page and the graphics/sounds that are referenced on that page. So if the page is a text-only page, the person was actually 'logged in' for only a fraction of a second.In other words, you can't do what you want, you can only guess at it. Try recording the time each person requests a page, then display the time instead of the date. Then other users can try to figure out who's still there by looking at the last time they requested a page.Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Trouble with formula.db + more explanation (1997) dbQuickView 2.0 (2005) NT vs Mac (1997) Having trouble installing on Windows XP Pro... (2006) more on my bbs (1997) 2 easy questions re: [showif] and [sendmail] (1997) question: webmerchant connection (1997) Multiple prices (1997) Bulletin Board (1998) MacAuthorize order data fields WAS:How To question... (1997) Gil's in the lead (1999) Mozilla/4. and Browser Info.txt (1997) Can WC remember people? (1998) [urgent] Phone number at SM (2006) How to include weather (2000) SignalCatcher.debug (re: 100% CPU usage etc.) (2008) Follow-Up to: Removing [showif] makes a big difference in speed (1997) Typhoon Rev. and PCS store problems (1999) new storefront (2003) emailer w/F2 (1997)