goodoyster
04-02-2003, 02: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.
megan_c
12-22-2003, 03: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
thanks, meg
goodoyster
12-22-2003, 03: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.
megan_c
12-22-2003, 03:36 PM
Hi goodoyster - Your description of yourself as a cf programmer sounds a lot like me ;) - I'm not a cf newbie at all but would hesitate to call myself "intermediate" - understood your description of your solution and it sounds straightforward and functional. I hope you will try out the easycfm forums for some of your cf questions as the programmers over there are generous and great - cj & pablo are most likely the most knowledgeable but everyone helps everyone where they can. I came over here looking for some javascript help and have been browsing the boards - seems like a great bunch of people over here too - Oh, BTW - LOVE your sig. later, meg