Forum Moderators: phranque

Message Too Old, No Replies

cold fusion help needed?

ending session in cold fusion???

         

kelly rogers

7:20 am on Dec 28, 2001 (gmt 0)



How can you kill the session in cold fusion when the browser is closed or when the user leaves your site? In ASP, the session ends when you close the browser?

Regards
Kelly

julie silverstone

8:36 am on Dec 28, 2001 (gmt 0)



Hi Kelly

try out the following code module to end the session ... here it goes

<CFAPPLICATION
NAME="myapp"
SESSIONMANAGEMENT="true"
USECLIENTCOOKIES="false">
<CFIF NOT IsDefined("cookie.CFID")>
<CFLOCK SCOPE="session" TYPE="readonly" TIMEOUT="5">
<CFCOOKIE NAME="CFID" VALUE="#session.CFID#">
<CFCOOKIE NAME="CFTOKEN" VALUE="#session.CFTOKEN#">
</CFLOCK>
</CFIF>

all the best
regards
julie

Marcia

9:20 am on Dec 28, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello ladies :)

Will you both please check StickyMail at the top of the screen?