Sponsored Content
Top Forums Web Development How do I verify my web visitor is still online Post 302277009 by otheus on Thursday 15th of January 2009 06:05:43 AM
Old 01-15-2009
In your database, do you track the most-recently-used IP address for the user? That would help. Then your cron script queries the database for a logged-in users, gets the IPs, and then loops through each IP with some utility to check if the IP is still there.

The problem with the last step is what to do if that IP is behind a firewall.

In my opinion, you are better off having an "expiry" time for server-side cache objects. So every time the user interacts with the web server, a most-recently-used timestamp is updated for that user. The cron job periodically sweeps through this table, removing entries older than, say, an hour.
 

We Also Found This Discussion For You

1. Post Here to Contact Site Administrators and Moderators

Suggestion: visitor graphs

Perhaps we could think of visitor graphs that would give a sense of both the popularity of the forum and - more importantly - the popularity of Linux and the Open Source operating systems movement. Something similar to what sourceforge has done for their projects: SourceForge.net: Project... (2 Replies)
Discussion started by: figaro
2 Replies
xchkdmp(8)					       JFS utility - dump fsck.jfs log file						xchkdmp(8)

NAME
xchkdmp - dump the contents of a JFS fsck log file created with xchklog SYNOPSIS
xchkdmp [ -f input.file ] [ -V ] DESCRIPTION
xchkdmp dumps the contents of a JFS fsck log file that was created by JFS utility xchklog. If no input file is specified, the default path and file name (<pwd>fscklog.new) is used. The output is written to standard out. OPTIONS
-f input.file Specifies the input file name and path. input.file must be 127 characters or less in length. input.file will be read from the present working directory unless it is fully qualified. -V Print version information and exit (regardless of any other chosen options). EXAMPLES
Dump the contents of the fsck service log in <pwd>fscklog.new: xchkdmp Dump the contents of the fsck service log in /temp/l9651107.log: xchkdmp -f /temp/l9651107.log REPORTING BUGS
If you find a bug in JFS or xchkdmp , please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site: http://oss.software.ibm.com/jfs Please send as much pertinent information as possible, including any xchkdmp error messages and the complete output of running fsck.jfs with the -v option on the JFS device. SEE ALSO
xchklog(8), mkfs.jfs(8), fsck.jfs(8), logdump(8), logredo(8), xpeek(8) AUTHOR
Barry Arndt (barndt@us.ibm.com) xchkdmp is maintained by IBM. See the JFS project web site for more details: http://oss.software.ibm.com/jfs January 11, 2001 xchkdmp(8)
All times are GMT -4. The time now is 07:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy