on a successful login just do: <cfset application.loggedin[#session.cfid##session.cftoken#] = structNew()> <CFSET application.loggedin[#session.cfid##session.cftoken#].Password = "#Security.Password#"> <CFSET application.loggedin[#session.cfid##session.cftoken#].Username = "#Security.username#"> <CFSET application.loggedin[#session.cfid##session.cftoken#].forename = "#Security.foreName#"> <CFSET application.loggedin[#session.cfid##session.cftoken#].surname = "#Security.surName#"> <cfset application.loggedin[#session.cfid##session.cftoken#].logintime = now()>
that's IF you have a reason to persist all that in the application scope. you should be able to leave all of your session scope code the way it is now (assuming it's working now) and simply do a <cfset application.loggedin[#session.cfid##session.cftoken#] = now()> when a user logs in. All you'd then need to do is a datediff() against each key on each request to kill the keys you no longer need. ~Simon Simon Horwith Macromedia Certified Instructor Certified Advanced ColdFusion MX Developer Certified Flash MX Developer CFDJList - List Administrator Fig Leaf Software 1400 16th St NW, # 220 Washington DC 20036 202.797.6570 (direct line) http://www.figleaf.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 04 February, 2003 5:37 AM To: CF-Talk Subject: Re: CF Logins and Users Logged In Ok Say for instance the user has successfully logged in and now the session variables are being set up. How can I build Simons method into these variables that get set up? or would it have to be a seperate piece of coding? <CFSET Session.Password = "#Security.Password#"> <CFSET Session.Username = "#Security.username#"> <CFSET Session.forename = "#Security.foreName#"> <CFSET Session.surname = "#Security.surName#"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

