Re: Closing Browser expires session/cookie

2010-11-06 Thread Michael Grant
OT: lmgtfy.com = what did the five fingers say to the face? On Sat, Nov 6, 2010 at 12:42 AM, denstar valliants...@gmail.com wrote: On Fri, Nov 5, 2010 at 5:26 PM, Tony Bentley wrote: So I have an app that uses cflogin, which works great if the user logs in and out from the same browser.

Re: Closing Browser expires session/cookie

2010-11-06 Thread denstar
Naw, if I meant it like that I'd be all like, [lmgtfy] FOAD! vs. [lmgtfy] HAND!. :) I'm down with Bentley, yo! So there! =) :Den -- Freedom is a system based on courage. Charles Peguy On Sat, Nov 6, 2010 at 6:32 AM, Michael Grant wrote: OT: lmgtfy.com = what did the five fingers say

Re: Closing Browser expires session/cookie

2010-11-06 Thread Dave Watts
Yeah but their session expires a couple of hours after they close the browser. So I could expire the session at a shorter timespan but if I can do it when the browser closes, that would be better. The default session timeout is twenty minutes, I think. You should probably set the session

Re: Closing Browser expires session/cookie

2010-11-06 Thread Michael Grant
:D On Sat, Nov 6, 2010 at 1:24 PM, denstar valliants...@gmail.com wrote: Naw, if I meant it like that I'd be all like, [lmgtfy] FOAD! vs. [lmgtfy] HAND!. :) I'm down with Bentley, yo! So there! =) :Den -- Freedom is a system based on courage. Charles Peguy On Sat, Nov 6, 2010

Re: Closing Browser expires session/cookie

2010-11-06 Thread Tony Bentley
Okay, so I think you hit it Dave. I just need to shorten the session to 15 or 20 minutes. The system already requires a login when the user closes the browser so why not just shorten the timeout? I've already have the user sessions stored in a cookie so I was close, but didn't think about why

Closing Browser expires session/cookie

2010-11-05 Thread Tony Bentley
So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped: -User logs in, then closes the browser -System does not allow the same user to be logged in more than once -System logs all logged in users -System removes

Re: Closing Browser expires session/cookie

2010-11-05 Thread Ian Skinner
On 11/5/2010 4:26 PM, Tony Bentley wrote: How can I remove the user from the log when they close the browser? You really can't! Browsers don't go back to all the web servers that the user visted and tell them I'm being closed now. So yeah, the user closes the browser but that doesn't fire

RE: Closing Browser expires session/cookie

2010-11-05 Thread Russ Michaels
Arn't they logged out automatically when the session expires ? -Original Message- From: Tony Bentley [mailto:cascadefreehee...@gmail.com] Sent: 05 November 2010 23:27 To: cf-talk Subject: Closing Browser expires session/cookie So I have an app that uses cflogin, which works great

Re: Closing Browser expires session/cookie

2010-11-05 Thread Tony Bentley
Yeah but their session expires a couple of hours after they close the browser. So I could expire the session at a shorter timespan but if I can do it when the browser closes, that would be better. On Fri, Nov 5, 2010 at 4:50 PM, Russ Michaels r...@michaels.me.uk wrote: Arn't they logged

RE: Closing Browser expires session/cookie

2010-11-05 Thread Russ Michaels
Browser expires session/cookie Yeah but their session expires a couple of hours after they close the browser. So I could expire the session at a shorter timespan but if I can do it when the browser closes, that would be better. On Fri, Nov 5, 2010 at 4:50 PM, Russ Michaels r...@michaels.me.uk

Re: Closing Browser expires session/cookie

2010-11-05 Thread Sean Corfield
Um, won't that run every time you move to a new page in the same app? On Fri, Nov 5, 2010 at 5:49 PM, Russ Michaels r...@michaels.me.uk wrote: Well you can use javascript to detect when the browser is closed and then call another cfm page or make an ajax call to end the session. e.g. body

RE: Closing Browser expires session/cookie

2010-11-05 Thread Russ Michaels
Pass, you would have to test that, it was just a suggestion :-) -Original Message- From: Sean Corfield [mailto:seancorfi...@gmail.com] Sent: 06 November 2010 01:26 To: cf-talk Subject: Re: Closing Browser expires session/cookie Um, won't that run every time you move to a new page

Re: Closing Browser expires session/cookie

2010-11-05 Thread Monique Boea
I have done this before. Let me look through my code and get back to you. On Fri, Nov 5, 2010 at 7:26 PM, Tony Bentley cascadefreehee...@gmail.comwrote: So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped:

Re: Closing Browser expires session/cookie

2010-11-05 Thread denstar
On Fri, Nov 5, 2010 at 5:26 PM, Tony Bentley wrote: So I have an app that uses cflogin, which works great if the user logs in and out from the same browser. Now here is where I am stumped: -User logs in, then closes the browser -System does not allow the same user to be logged in more than