CF session variables are based on a timeout and (as far as I know)
cannot be made to expire when a browser is closed. An option might be to
set a browser session cookie (the default behavior of cfcookie) which
will expire when the browser closes, and check that - if it no longer
exists then clear your session records cache and recreate the cookie.

There might be better ways but that's my offhand take.

Kam 

-----Original Message-----
From: Web Exp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 07, 2004 10:04 AM
To: CF-Talk
Subject: Elementary session question

Hi. I am new to session management in CF. My application inserts certain
records into the database. After inserting each record, the user gets to
see all the records that he added in this particular session.
If the user closes browser, and adds more records, he should not see the
ones that he added before closing the browser.

How can i do the above. I tried it by inserting the CFID and CFTOKEN
into the database. But these two don't change when the browser is
closed. So, how can i track the records added just as long as the
browser is open?

Thanks,
Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186506
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to