Sponsored Content
Top Forums Web Development How do I verify my web visitor is still online Post 302276149 by heman007 on Tuesday 13th of January 2009 06:42:37 AM
Old 01-13-2009
Data How do I verify my web visitor is still online

Hello every one,

I have a little issue that has been killing me now for the past couple of days, I have tried to find solutions online, but its been hard to, ok here it goes...

I have created a site that is based on amount of user that have access at a time, based on cookie. So if the browser is closed, I am able to remove user from my database, however, when the pc freezes or pc just shuts down, I can't tell the database that user has been removed.

I am looking for a solution via shell if possible, maybe based on the user ip, shell checks database and checks if this ip is active, and if not the user is removed from database, then I can add to cron job.

Any help, I would be gratefull thank you
 

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
utmpx(4)							   File Formats 							  utmpx(4)

NAME
utmpx, wtmpx - utmpx and wtmpx database entry formats SYNOPSIS
#include <utmpx.h> /var/adm/utmpx /var/adm/wtmpx DESCRIPTION
The utmpx and wtmpx files are extended database files that have superseded the obsolete utmp and wtmp database files. The utmpx database contains user access and accounting information for commands such as who(1), write(1), and login(1). The wtmpx database contains the history of user access and accounting information for the utmpx database. USAGE
Applications should not access these databases directly, but should use the functions described on the getutxent(3C) manual page to inter- act with the utmpx and wtmpx databases to ensure that they are maintained consistently. FILES
/var/adm/utmpx user access and adminstration information /var/adm/wtmpx history of user access and adminstrative information SEE ALSO
getutxent(3C), wait(3C), wait.h(3HEAD) SunOS 5.11 6 Mar 2008 utmpx(4)
All times are GMT -4. The time now is 05:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy