04-02-2003, 03:35 AM
Does ColdFusion have a way to fire off a cfmail page once a visitor's session ends? In other words, the visitor goes signs in, visits various pages on the site, then leaves. Once they leave, an email with their information and which pages they visited is sent. In case it matters, this is for an "extranet" - a company wants to track which of its salesmen out in the field are checking messages, downloading memos, writing quotes, etc. from their online sales management system.
12-22-2003, 04:00 PM
Did you ever find an answer to your question? If not, this would be a good question to ask cj over at the easycfm forum http://www.easycfm.com/forums/
if you did work it out I would be interested in the answer to that
12-22-2003, 04:26 PM
Thanks for the tip on the other resource. I found a solution, though I'm not sure it is the most efficient. I'm not a programmer by training, just do it by accident - I'm a web designer who works for a browser-based software company that uses a lot of ColdFusion, so I've picked up enough knowledge to be dangerous!
I'm awful at explaining this stuff, as I sometimes use the wrong technical wording. But I'll give it a shot! Here's what I did:
I created another table, and each time someone visits a page it sets a variable in the table (using an "onload" action to submit a form). The whole online system is run from within a frames page, so I set an "onclose" action in the main frames page body tag to call a cfmail page. The cfmail page pulls the info from the new table in the database of which pages were visited, etc. and sends them to management.
12-22-2003, 04:36 PM