Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have been following the example p

Status
Not open for further replies.

khurram

IS-IT--Management
Jan 10, 2001
95
CA
I have been following the example provide with CF on how to build a shopping cart. However, in the example, they insert all items that go into a shopping cart into a table. I don't want to do that (yet).

How can put items into Session Variables and then recall them when it comes time to displaying them in the shopping cart without writing to a table?

I have the following defined in the application.cfm file so far:

<CFPARAM name=&quot;Session.StoreQuantities&quot; default=&quot;&quot;>
<CFPARAM name=&quot;Session.StoreItems&quot; default=&quot;&quot;>

Thanks.
 
Hi ..
I can't see any problem! you can easily store values into session variables as the followin':

<CFSET Session.StoreQuantities = &quot;SomeValue&quot;>
<CFSET Session.StoreItems = &quot;SomeValue&quot;>

And so on ..

To output the value of the session variable:

<CFOUTPUT>
#Session.StoreQuantities#, #Session.StoreItems#
</CFOUTPUT>

In case i misunderstood you, explain more please.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top