You might recall I had a problem a short while ago maintaining state with pretty tight restrictions on what methods I can use. Here's what I have come up with, and I'd appreciate any thoughts those of you with more experience in multiple-server installations might have.
We'll have a two-web server clustered installation, with another dedicated database server running SQLServer2005. This is a relatively low traffic, but high dollar volume site (as in 6-figure pricing) and reason for using the server cluster is to get high reliabilty. To remind you of the restrictions: - No cookies. At all. None. Don't argue - DONT USE COOKIES (yessir!!). - No Sticky sessions. - No Client variables. (my client had a bad experience with them in a previous life and wont be budged on it) - New session token issued with each page view to prevent people picking up old sessions (or even worse - someone else's sessions) with bookmarks and URLS emailed between users That doesnt leave me with a lot of options, so here's what I've come up with - do you folks think this is going to work? I'm planning to use UUID() to create the tokens. But can you cause a new sessionID to be issued, thereby allowing CFLOCATION tags to use the Addtoken="yes" attribute? *OnRequestStart:* - Read the UUID from the URL. (if no UUID create a new 'session') - Retrieve the WDDX packet of the state from the DB - Has the session expired (i.e. is the time stamp more than 30 minutes old?) - If it's expired, delete the old session and create a new one. - Issue a new UUID for this 'session'. *Process the rest of the page. * *OnRequestEnd:* - Add UUID to the page request - Serialise the 'session' state into WDDX packet - Add a timestamp (i.e. now()) - Write to DB record. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270950 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

