Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Sarasota, FL, USA
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cold Fusion session end question

    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.
    "It takes a big man to cry, but it takes a bigger man to laugh at that man." Jack Handy

  • #2
    New to the CF scene
    Join Date
    Dec 2003
    Location
    New Mexico
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Sarasota, FL, USA
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    "It takes a big man to cry, but it takes a bigger man to laugh at that man." Jack Handy

  • #4
    New to the CF scene
    Join Date
    Dec 2003
    Location
    New Mexico
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

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