Re: keeping track of last visit

"Daniel P. Berrange" <[email protected]> Tue, 15 Jun 2004 17:02:58 +0100
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <[email protected]>
On Tue, Jun 15, 2004 at 11:58:42PM +0800, Jun Yamog wrote:
> Hi,
> 
> What are good ways or direction to keep track of the last visit of a
> user.  Ideally we will just put it on each request, look up the user,
> update his/her last visit.  I don't think this is good performance-wise.
> 
> Do you guys have a general idea or directions what to use?  Thanks.

IIRC the CCM auth cookie contains the userid, so simply configure
your apache server to log cookies to a special log file. if you
need to access this info from Java, then have some job that processes
this file every 5 mins & bulk inserts info into the DB.

Dan.
-- 
|=-   Red Hat, 338 Euston Road, London, NW1 3BT.  +44 (0)7977 267 243   -=|
|=-         Perl modules: http://search.cpan.org/~danberr/              -=|
|=-             Projects: http://freshmeat.net/~danielpb/               -=|
|=- GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|

-- 
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAzx2ws9/3Qn07lQURAuNbAJ4kLLMqgoe6TClRE3ZZfnInErfSwgCfcXRf
kKeMHFkWtE+36rAaTt7mbPg=
=3q6l
-----END PGP SIGNATURE-----