Hi all, Basically, I don't like relying on cookies, so I code my apps appending the cfid and cftoken to each link where session variables are required. At the beginning of each page request I do <cfset token = "cfid/#session.cfid#/cftoken/#cftoken#/"> (I'm using search engine safe URLS) and then I append the #token# var to links.
Sometimes, however, if a session is destroyed for some reason - I accidently ran a structclear(Session) once, for example - the cfset throws an error that session.cfid can't be found. I can't successfully run the page until I close the browser and delete the cookie, at which time the CFID and CFTOKEN get reset, I'm presuming. In case this happens, I'm thinking I should have a try-catch block around the locked assignment statement. If it fails, I should try to delete the cookie. OR maybe read the values out of the cookie if they exist, and use these? I don't know if this will work or how to actually do it, however. Any ideas/code snippets? Am I going about this the wrong way? Ta, Kay. ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

