Current location: Hot Scripts Forums » Programming Languages » Perl » 1 Simple Q


1 Simple Q

Reply
  #1 (permalink)  
Old 12-11-03, 01:05 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
1 Simple Q

How can I test to see who is logged in and who is offline? I have them loggin in through the .htaccess/.htpasswd system and I use the env var for picking up their usernames.

Is there some sort of test that would tell me there online


Bonus Q - what about finding out which page there viewing as well ...that would be good, but not so important.
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #2 (permalink)  
Old 12-11-03, 06:00 AM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
You could monitor who is viewing which page, by having some kinda tracking script called via SSI on each page (you can't get that kinda info any other way).

As for seeing who is online, the tracking script could read the env variable to get the person's username, and write it to some kinda database, from which you can get a listing. If the user is not logged in, that env var will not exist or will be empty, so you can have the script react accordingly.

Last edited by Skeleton Man; 12-11-03 at 06:03 AM.
Reply With Quote
  #3 (permalink)  
Old 12-11-03, 05:22 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Skeleton Man
You could monitor who is viewing which page, by having some kinda tracking script called via SSI on each page (you can't get that kinda info any other way).

As for seeing who is online, the tracking script could read the env variable to get the person's username, and write it to some kinda database, from which you can get a listing. If the user is not logged in, that env var will not exist or will be empty, so you can have the script react accordingly.
a Ha ! So when a env variable is not being used it doesnt excist! Perfect thats got to be the easiest thing Ive tried to accomplish thus far

Thanks for replying Skeleton Man

__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a simple image with info text script (I can even pay you for this) nezbie Script Requests 2 04-05-04 09:47 AM
simple photo gallery forcer Script Requests 5 01-08-04 09:07 AM
Need a simple php script jarod Script Requests 1 11-05-03 08:38 AM
Need simple example of making a website with Perl JohnElmore Perl 5 10-04-03 09:46 PM
I need a very simple calendar Giullare Script Requests 0 09-24-03 06:53 PM


All times are GMT -5. The time now is 04:48 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.