John, I want to make sure I understand correctly... In you point #2, 1. Do you 'want' all of the users who go to your site to 'also' be logged in? 2. How have you tested for this scenario?
The reason I ask is that a 'session' is created for each separate user, not site-wide, so if this is happening, then that means that code you have created does this on purpose, and you probably intended it. If you didn't want it to happen this way, I ask about how you tested for this because there may be a misunderstanding of what constitutes a 'browser session'. Excuse me if you knew this already. Lets say you have IE on your computer. If you log into a website with IE and then you open up a new browser window and go to the same site, the session will 'overlap' the two browser windows, allowing both windows to be logged in at the same time. This is normal. However, if you log into the site with IE, then open Firefox or Safari or Opera and go to the same site, that 'session' will not carry over to the new browser. William ------------------ William E. Seiter Need to have your mortgage modified? I charge no fees until I am successful, then I charge almost half the rate you would find elsewhere. Professional. Dedicated. Effective. The Easy 24/7 way to get started: http://www.goldengrove.net/ or you can call: (626) 593 - 5501 -----Original Message----- From: John Barrett [mailto:[email protected]] Sent: Sunday, March 01, 2009 10:59 PM To: cf-newbie Subject: login app from CFWACK Hi, Has anybody been trough the login chapter using CFWACK(I think #21 in version 7)? I am trying to use it(modified a little), but I am having two major issues, which I think that are related to sessions. (1) When does the session end? I always assumed the the session ends when the browser is closed. In my Application.cfc page I have: <!--- Set session timeout---> <cfset this.sessiontimeout= createTimeSpan(0,0,2,0)> Does this not end the session in 2 minutes? (2) when one user is logged in others can log in during the same time as that user, even those not in the db. Which is why the timeout is so short.That is if admin is logged in, and another user comes along "bob" who is re directed to the welcome page as admin. Also the check for users in the db is not working as bob is not in the system. I was wondering if I posted the code, or put it on a blog or something if somebody could help me understand what problems I am having? I need to make a CF based login for a site that I am working on at school, and if anybody knows of other examples that would also be fine too. I have the code at: http://www.gotnutrients.net/test_login admin/admin will work Thanks so much, John ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4412 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
