Sponsored Content
Top Forums Web Development How do I verify my web visitor is still online Post 302277028 by angheloko on Thursday 15th of January 2009 07:39:37 AM
Old 01-15-2009
Hi heman007,

I agree with otheus. Additionally, checking the IP of the user's machine would probably be only possible and practical on intranets. User's accessing your site from a computer shop will all have the same IP.

Like what otheus said, set your cookies "expires" property. In your table you'll have a column, say 'LastAccess', which updates everytime a user does something in your site (like clicking a post).

You must then have a script at the server-side that regularly checks the LastAccess field vs. the current time. If the difference exceeds a certain threshold (which translates to inactivity of the user) then you can delete or flag that record. Normally, the threshold will be equal to the value of the "expires" property of the cookie.
 

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
jfs_logdump(8)						  JFS utility - journal log dump					    jfs_logdump(8)

NAME
jfs_logdump - dump a JFS formatted device's journal log SYNOPSIS
jfs_logdump [ -a ] device DESCRIPTION
jfs_logdump dumps the contents of the journal log from the specified JFS formatted device into output file ./jfslog.dmp. device is the special file name corresponding to the actual device from which the journal log will be dumped (e.g. /dev/hdb1 ). jfs_logdump must be run as root. OPTIONS
-a Dump the entire contents of the journal log instead of just the committed transactions since the last synch point. EXAMPLE
Dump the entire JFS journal log from the 3rd partition of the 2nd hard disk into ./jfslog.dmp: jfs_logdump -a /dev/hdb3 REPORTING BUGS
If you find a bug in JFS or jfs_logdump, please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site: http://jfs.sourceforge.net/ Please send as much pertinent information as possible, including any jfs_logdump error messages and the complete output of running jfs_fsck with the -v option on the JFS device. SEE ALSO
jfs_fsck(8), jfs_mkfs(8), jfs_fscklog(8), jfs_tune(8), jfs_debugfs(8) AUTHORS
Barry Arndt (barndt@us.ibm.com) William Braswell, Jr. jfs_logdump is maintained by IBM. See the JFS project web site for more details: http://jfs.sourceforge.net/ October 29, 2002 jfs_logdump(8)
All times are GMT -4. The time now is 01:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy