>> (assuming the user had left the site or closed the browser): check CGI.HTTP_REFERER
but you don't have to (muck around with http_referer - which in not 100% reliable and can be a PITA to put in place) when I switched from ASP to CF, these sticky sessions were one of the first changes to trip me up. ASP always killed sessions on browser close (or navigate away). CF doesn't. IMHO, the link I gave to a work-around is an OK way to do it. IIRC, Gary Menzel posted an even shorter/tidier one (to go into the Application.cfm page) on CFAUSSIE over a year ago. I whinged about having to do so at the time (I was a Microsoft "snob") but with a couple of lines of code, the problem is gone for good. no big deal. - and the best bit? if you DO want your sessions "sticky", they're set as such by default! just my 2c worth. barry.b -----Original Message----- From: Aaron DC [mailto:[EMAIL PROTECTED] Sent: Monday, 28 June 2004 3:16 PM To: CFAussie Mailing List Subject: [cfaussie] RE: End Session Hmmmm I had to handle this scenario re: someone coming back and accessing the site (intranet application) and "inheriting" the last user's privileges. The way we ended up doing this is (assuming the user had left the site or closed the browser): check CGI.HTTP_REFERER. If the user is not navigating from within the application (or site), assume they logged out and reset their session accordingly, taking them back to the login screen. I think there was a nocache strategy in there somewhere also so [<= Back] didnt give away too much information. HTH Aaron ----- Original Message ----- From: "Carl Vanderpal" <[EMAIL PROTECTED]> To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 28, 2004 2:59 PM Subject: [cfaussie] RE: End Session > Hello CFAussie, > > Thanks.... > I will just make a few TWEAKS...and all should be sweet! > > > > :D > > > > Best regards, > Carl Vanderpal > Po Box 3462 Dural, NSW 2158 > mailto:[EMAIL PROTECTED] > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
