coldfusion - Dump Session Into SQL Database -


Is it possible to dump a ColdFusion session into a SQL database? I have many session values ​​and what I want to do is just dump them all into a database. I did not know that I had to write each value in the database or if I could have a big session which just got all the values ​​or variables Dump to anyone who was used in a database. Actually I have a checkout form, they fill out many questions out and then confirm on the last page. When they confirm that I want everything that they have entered throughout the session so that they can dump into the database Does anyone know where I can get an example of this or someone can provide one?

Say you want to do something like this:

  & Lt; Cfsavecontent variable = "sessiondata" & gt; & Lt; Cfdump var = "# session #" format = "text" & gt; & Lt; / Cfsavecontent & gt; & Lt; Cfquery & gt; Enter the table (session data) value (& lt; cfqueryparam cfsqltype = "cf_sql_varchar" value = # sessionData # "& gt;)   

It is quick and easy and leaves you with data Whatever is hard to do if it was me, then I do something like this:

        < P> Except, instead of displaying the key values, I store them in relational databases Not normalized way.   

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -