Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default When window closes

    When a user clicks the window close block/x in the top right corner I need to
    send the browser to a logout script page that logs them out and closes the
    window. I have about 300 pages in this site so something that could be
    included in a Application.cfm file would be awesome.
    Now I can't use a onbeforeunload() because if they click on a link it will
    log them out. Any ideas????????

    Newkirk Guest

  2. Similar Questions and Discussions

    1. Closing PDF File also closes IE Window.
      Whenever I close a PDF that opens in a new window from Internet Explorer, it closes not only the PDF but also all the IE windows I open. It's...
    2. acrobat window closes immediately after initialization; ver 6 on XP
      As soon as Acrobat ver 6 initializes (seen on startup flashscreen), the main Acrobat window opens, and then immediately closes. Can anybody...
    3. if user closes browser window
      hi, I need to save some values in a database when the user closes an unfinished flash using the "X" button of the explorer. I'm making tests for...
    4. Dir MX: Projector Closes After 1 Sec.
      My Director projector closes after 1 second for no apparent reason. This is happening in MX and MX 2004 and only started today. It was operating just...
    5. Unload component when user closes browser window
      Hi there, I developed an asp component (not com+) in visulabasic. From the webbrowser (only IE is used) the user can select various functions...
  3. #2

    Default Re: When window closes

    You have no control over the user's ability to close the browser. You cannot
    trigger anything via your application, because your app will never know the
    browser is closed (HTTP is stateless, and nothing will be sent telling you app
    something happened).

    If you are using cookie-based sessions, you can re-write the CFID and CFTOKEN
    cookies that CF uses so that they are non-persistent and will expire when the
    browser closes. You can find examples of this here on the forums, just search.

    Bryan


    blewis Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139