Log In Revisited

Today I spent the day revising my log in system, it went from a long file to a much shorter file mainly by dropping the main functions into coldfusion components. Parts were also removed from their own page and path and placed into application.cfm. I will be moving that over to application.cfc probably tomorrow, I have done it before for other sites just haven’t made the change for this one yet. By placing the logic in the application file every page is now guaranteed to process the log in if needed without any redirection to keep the user on the same page. One thing I noticed was that once you have logged a user in you cant redirect them because it will log them out, why I am not sure but its not a big deal I achieve the same effect without redirecting now.  Recently I rewrote the calls to stored procedure into component form, I wish I had done this earlier, the code is much cleaner now and once I need to changed stored procedures to assembly calls it will be a simple process. Before this I had really messed with components before and I am kicking myself for it now. On to another day preparing to finish up my ColdFusion coding and head into ASP.NET. Learning has been going slow but I am trying to force myself to study more, wish me luck.


Leave a Reply