Execute code on session end

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

  1. #1

    Default Execute code on session end

    I would like to pop up a message to the user when the session is about to time out. And if they don?t respond I would like to update a database just before the session ends.
    ken_s Guest

  2. Similar Questions and Discussions

    1. error, mapping htm files execute cfm code
      Hello, I followed this technote to configure the web server so he can execute coldfusion code in htm files :...
    2. Execute code on page load
      I can code that I want to execute on page load (code includes asp insert data into tables) DWMX behaviours insert on submit. Can anyone put me on...
    3. User control code behind does not execute
      Anybody have any ideas as to why my user control code will not execute the server side code? I converted an .aspx page to an .ascx user control. ...
    4. execute javascript from php code
      How can I execute a javascript file(test.js) from within PHP. I'm running oscommerce and want to insert a menu created in javascript by Sothink...
    5. How can I execute code stored in variable
      > Something like ***execute()***, but instead of executing shell oops! By execute() I meant exec() or passthru(). It was very late when I...
  3. #2

    Default Re: Execute code on session end

    You could notify the client that the session is about to end via javascript,
    but there is not a way in 6.1 to execute code when a session ends. This
    changes in 7 with application.cfc and the onSessionEnd function. HTH.

    ajpowellatl Guest

  4. #3

    Default Re: Execute code on session end

    Definately sounds like some active code to accomplish this, since ColdFusion
    wouldn't know about the user timing out until the page was submitted back to
    the server. And by then, it's too late. A solution I have seen is some
    javascript code that popped a little window when the user was approaching a
    timeout. If the user responded, then the window would repost to itself (and
    update the session time) then close itself. The older origional browser window
    was untouched.

    Mike Greider 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