RE: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread James Holmes
You might have to post the contents of the cflogin block, as this is very weird. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or w

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Jared Rypka-Hauer - CMG, LLC
All you're going to need is something like this: In your logout page, run the cflogout tag, which does not error if there is no user logged in... and then something like this: Now that's example code, and not really customized for CFC use... I generally start using page-scope code an

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Jared Rypka-Hauer - CMG, LLC
Ooops, missed a part of the message from Fabio... yeah, it's a bit odd. Fabio, are you using onSessionStart and onSessionEnd events to control your sessions? Really, what you should be doing is using onSessionEnd to clean up your session when it times out instead of detecting problems later and

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Fabio Terracini
Oh yeah. The cflogin block follows: al

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Fabio Terracini
Oh yeah. The cflogin block follows:

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Fabio Terracini
Really odd! Jared, I'm not using onSessionStart, neither onSessionEnd. The Application.cfc only contains the application variables (this.name, etc) and onRequestStart method, which includes the cflogin block. Should I use onSessionEnd? When the browser close, both login and sessions are ended

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Jared Rypka-Hauer - CMG, LLC
Fabio, I suggest you give onSessionEnd a try... if for no other reason that to write a few log file entries. Maybe not permanently, but at least while troubleshooting. I think that what's happening is this: while J2EE sessions promise some nice things, they're not quite working correctly. :) W

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Fabio Terracini
Thanks Jared. I also tried your modifications in cflogin block, but didn't work. The sessions seems to be working fine. I still think it's something with cflogin tag, and it's totally ridiculous to lost time with such a simple tag. Oh my... I'm almost changing the login architecture, dismissin

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Fabio Terracini
I rewrited all the code and I'm not using cflogin structure anymore (with j_username and j_password). Also, I deleted all classes in cfclass directory and have a before the cflogin block. We're running some tests, but I believe it's "solved" by now, although the specific bug wans't discov

Re: Weird problem with CFLOGIN and Session variables

2005-05-04 Thread Jared Rypka-Hauer - CMG, LLC
Good news on the solving part... sometimes that's all one really wishes to achieve. I'll let you know if I find anything on my end... J On 5/4/05, Fabio Terracini <[EMAIL PROTECTED]> wrote: > > I rewrited all the code and I'm not using cflogin structure anymore > (with j_username and j_passwor