Hello i am a litter new to coldfusion, I have just finish my first web site (using CF8 and MySql5) My hosting server doesn’t enable session on CF8 plans (only on CF9) I want to login users securely so they can edit or delete their Add So I am obliged to upgrade to CF9 or use cookie session instead of CF or J2EE session If any one has an idea how to login user using cookie session If is it possible to give example code Thank you very much
What does your previous login code look like? Because generally the concept would be the same for cookies. Only the scope would change. ie use COOKIE instead of SESSION.
thank u finally i did it with CF session without need of J2EE session but with the same functionality of J2EE session: <cfset this.name="xxxxxxxx"> <cfset this.sessionmanagement="true"> <cfset this.sessiontimeout=#CreateTimeSpan(0,0,25,0)#> <cfset this.setClientCookies = "false"> and then on OnSessionStart: <cffunction name="OnSessionStart" access="public" returntype="void" output="false" <cfcookie name="CFID" value="#SESSION.CFID#" /> <cfcookie name="CFTOKEN" value="#SESSION.CFTOKEN#" /> <cfreturn /> </cffunction> so its like J2EE session; there is no cookie stored on client, when closing browser automatically loug out .....
yes, and that just what i wanted, i think its stored in browser memory, when you close browser the cookie deleted