Results 1 to 2 of 2
  1. #1
    psandeep is offline Member
    Join Date
    Jan 2008
    Rep Power

    Thumbs up How to track client logout time and orignal ipaddress (not gateway) in java


    1) I want to capture the client logout time, when he closes the window in wrong way also i.e. "X" (window close).
    I tried using javascript, "onunload", but some times working and sometimes not.
    So, i want to try entirely in java only.

    2) I want to capture the client original login system IP, not gateway IP, i am getting client ip if i use Sessions.
    Using, java only i want to capture client Original Ip, where ever he login from.

    very very urg...............

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Getting the actual IP is not likely, one can record enough information about the transaction that logging and so on could be effective There are all manner of IP-V4 substitutions going on so that admnistrators can juggle all the equipment and traffic. Just ask the user for some simple information - the proverbial username and password are sufficient. If you have real troubles, coding at this skill level is just going to make you the target of much more skilled people.

    I have heard of at least one discussion that there is no way to capture a system.exit() event. Ask your users to logout. If they won't, go back to Burger Barn and ask for your old job back till you find some decent people.
    Last edited by Nicholas Jordan; 06-13-2008 at 02:33 AM. Reason: spelling - add coma for readbility

Similar Threads

  1. Gateway 4.6.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 03-14-2008, 07:12 PM
  2. logout using java script
    By pankajagar2001 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 01-03-2008, 07:37 AM
  3. Time and Date in Java
    By java_fun2007 in forum New To Java
    Replies: 4
    Last Post: 11-06-2007, 08:25 PM
  4. Track download
    By nilesh.malode in forum Advanced Java
    Replies: 1
    Last Post: 07-13-2007, 10:44 PM
  5. Part time java Programmer-Indianapolis,IN
    By pegitha in forum Jobs Offered
    Replies: 0
    Last Post: 05-08-2007, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts