sbenjamin

JSON Security

Jul 27th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cffunction name="jsonSecurity" access="private" returntype="any" returnFormat="json">
  2.     <cfargument name="cfctoken" required="yes">
  3.     <cfset var result = false>
  4.     <cfif arguments.cfctoken EQ session.cfctoken>
  5.         <cfset result = true>
  6.     </cfif>
  7.    
  8.     <cfreturn result>
  9. </cffunction>
Advertisement
Add Comment
Please, Sign In to add comment