I must say, I have never seen a log out script like this before, and I'm not sure if it will work either. I think it would be better if you actually deleted the session variables..
PS. have you thought what happens if the client does not have JavaScript enabled? ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 7:30 PM Subject: Re: CF Logins and Users Logged In > Hi > > Thanks for the excellent replies > > I have a log off feature which is a little piece of javascript > > <SCRIPT LANGUAGE="JAVASCRIPT"> > function confirmDelete(aURL) { > if (confirm("W A R N I N G ! Are you sure you wish to log off")){ > document.location=aURL; > } > } > </SCRIPT> > > > <a href="javascript:confirmDelete('../logoff.cfm')">Log Out</a> > > > which sends the user to logoff.cfm. Contained in logoff.cfm is the following CF Code > > <cfapplication name="users" sessionmanagement="Yes" > sessiontimeout="#CreateTimeSpan(0,0,0,0)#"> > > > Which ends their session. > > Both ideas seem very usefull, just would like to implement the most consistent and efficient method, so I would appreciate your views on the best example to use? > > Using Jasons example I would add another field to my Oracle usertable called logged_in. > > However how would I set that field when the user logs in???? > > Any code examples of how to achieve the above ?? > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4