Results 1 to 3 of 3
  1. #1
    nagesh1811 is offline Member
    Join Date
    Jul 2008
    Posts
    7
    Rep Power
    0

    Smile how can we call Logout servlet by closing window

    HI all

    we are developing one web application...

    in that user is logged in and accessing all pages. at the top of the page we have sign out button all pages will open in forms. means top of the page is fixed for all pages. only subform wil change.. if user clicks sign out properly ok. we wrote Logout servlet for that.it will handle that. but if user close the window instead of sign out. how to call that logout servlet while user closing the window

    Thanks & Regards
    Nag

  2. #2
    nagesh1811 is offline Member
    Join Date
    Jul 2008
    Posts
    7
    Rep Power
    0

    Default

    asdfadfasdf asfd asf sdf asfd

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    You do a bump after an hour? That's fairly rude.

    The answer is that you can not be sure that the user "closed" the window, closed the browser, or disconnected the wire connecting his computer to the modem or Internet.

    Find another solution. What is your real problem?

    I expect you really just want to detect when the user is no longer sitting at the keyboard. You really can't do that either. You could require the user to have a camera, and look at the camera's output. But you can't know what the user is doing.

    Perhaps they went to get a sandwich. Perhaps they are playing solitaire.

Similar Threads

  1. Prevent escape from closing a SWT dialog
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-02-2008, 07:58 PM
  2. Replies: 5
    Last Post: 06-26-2008, 03:16 AM
  3. JFrame (closing under a condition)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 11:17 AM
  4. Closing packages
    By uncopywritable in forum New To Java
    Replies: 0
    Last Post: 08-13-2007, 11:47 PM
  5. How to call JSP inside Servlet
    By Swamipsn in forum Advanced Java
    Replies: 0
    Last Post: 07-31-2007, 12:50 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
  •