EasyCFM.COM ColdFusion Forums / Coding Help! / CFLOGIN Problem!

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: CFLOGIN Problem!

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

][ce
07-04-2005 @ 8:44 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 25
Joined: Jul 2003

Hey everybody!

I'm having some serious issues with CFLOGIN, and I'm hoping somebody can steer me in the right direction. Smile

We've recently upgraded our Coldfusion Server from 4.5 to MX, and I wanted to take advantage of a lot of the built-in functions, such as CFLOGIN.
Therefore, I changed my session variable login, to CFLOGIN (which I'm beginning to think was a mistake - although, turning back now is not an option).

Here is my problem: It appears as though my session variables are expiring long before CFLOGIN.  So, what is happening, my application still thinks the person is logged in because GetAuthUser() is returning a value, but then as soon as I call on a session variable, most pages will throw an error, since the values no longer exist.

I think everything is correct with my timeout values:
<CFAPPLICATION NAME="PortalApp"
     SESSIONMANAGEMENT="Yes"
     CLIENTMANAGEMENT="Yes"
     SESSIONTIMEOUT="#CreateTimeSpan(0,1,30,0)#"
     APPLICATIONTIMEOUT="#CreateTimeSpan(0,1,30,0)#">

<CFLOGIN IDLETIMEOUT="5400">
     <CFLOGINUSER NAME="#qryPortalLogin.EmployeeID#" PASSWORD="#Trim(form.txtPortalPassword)#" ROLES="#qryPortalLogin.UserRole#">
     ... more code here...
</CFLOGIN>


I've tried just about everything I could think of, to no avail.  My only lead was a macromedia article that talked about J2EE sessions, although, I've tried every combination of settings, and the problem is still happening.

Any help would be greatly appreciated.
Thanks,
Dave

GrowlyBear
07-04-2005 @ 9:36 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 1314
Joined: May 2004

Save yourself some headache do not use cflogin.
Search this forum, more problems with cflogin than successes.

~~~~~~~~~~~~~~~~~~~
There is no place like 127.0.0.1

][ce
07-04-2005 @ 10:18 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 25
Joined: Jul 2003

Wish it was an option... but at this point, as I've mentioned, it is not.


JJfutbol
07-04-2005 @ 12:30 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 1250
Joined: Nov 2004

I can tell you right now even if its not an option I doubt you will even find someone who does use it. Smile  Even in the CF courses taught at my college my professor doesn't even mention CFLOGIN. We do it the old fashioned way. I understand that might not be an option now but security can never be put off to the side. Thats a very important issue and CFLOGIN only makes it much more difficult. Doing a simple form, comparing usernames and passwords in the db and then creating a session is much easier. In fact there is someone you can possibly contact. I've been working on my forum again and was checking Ray Camden's Galleon Forum which is real neat. Go to his blog and download it. He uses CFLOGIN. I'd suggest sending him an email letting him if he could help out at all with your CFLOGIN trouble. http://ray.camdenfamily.com/

----------------------------------------------------
Need FREE CF applications?? Then my site has it all, http://www.mygamingnation.com/downloads.cfm In time I will be including many more free CF apps as you will see many listed up top on that page.

][ce
07-04-2005 @ 12:44 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 25
Joined: Jul 2003

Hey JJ

Thanks for the info.

I actually had the session-based login system (as you mentioned) prior to upgrading to MX, and thought it would be better to switch over to CFLOGIN and use built-in functions.  Boy, was I wrong!

But thanks for the information on Ray Camden's Galleon Forum, I'll definitely take a look at that.

I appreciate your feedback!
Dave



Website Designed and Developed by Pablo Varando.