using session variables

Results 1 to 2 of 2

Thread: using session variables

  1. #1
    Join Date
    Dec 1969

    Default using session variables

    I recently read the article here at 4guys on session variables and how evil they are. I use 2 sessions on my site: one for storage of an id# and one for storing cart info- would I be better off using a cookie for the cart info rather than a session variable? <BR><BR>I could just write the cart info to the dbase every time a new product is added, although it would result in a more cluttered dbase- would this be a better use of resources than using a session or cookie? Thank you for any input.

  2. #2
    Join Date
    Dec 1969

    Default RE: using session variables

    Session variables are not evil.<BR><BR>As long as all you&#039;re doing is sticking in a couple of strings (not vast swathes of information and/or objects), then you&#039;re fine.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts