PHP
  Home arrow PHP arrow Couch Sessions
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Couch Sessions
By: Vikram Vaswani and Harish Kamath, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 2
    2000-05-02


    Table of Contents:
  • Couch Sessions
  • Stateless In Seattle
  • The First Session
  • But There's More Than One Way To Skin A Cat...

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Couch Sessions
    ( Page 1 of 4 )

    Need to build an online shopping cart in a hurry? This article takes a look at session management, an important component of transaction-based Web sites, and explains the fundamentals of adding session support to your site. Examples in PHP4 and PHP3 with PHPLib.

    Psychiatrist: So, how are we feeling today, Victor?

    Patient: Not too good, Doc. I've been feeling a little blue lately...

    Psychiatrist: And why is that, Victor?

    Patient: I don't know, Doc. I haven't been sleeping too well, and I can't seem to work up an appetite at all. We went to an Italian restaurant the other day and ordered pasta - but when they brought it to the table, I couldn't bring myself to eat it. I just stared at it, with the theme song to "The Sopranos" playing over and over in my head...

    Psychiatrist: How's the family?

    Patient: Doing OK, I think. Marge spends most of her time in the kitchen, trying out recipes she's downloaded off the Web. And the kids are out of the house all the time - earlier, we used to see them at mealtimes, but now they've started eating at Burger King. Can't say I blame them, either.

    Psychiatrist: And work - everything good there?

    Patient: Not really - I've got this sadistic monster of a boss, and he seems determined to turn my life into the Dilbert Zone!

    Psychiatrist: Tell me a little more about him.

    Patient: Well, you know what I do - I'm a Web programmer over at Used Socks, Inc. Our new Web site is going live next week, and we're doing something completely unique - an online store for people to put up their used socks for sale. We've even got some angel investment - six million dollars, with more to come if we become the Web's most popular used socks portal.

    Psychiatrist: Sounds like things are going well for you.

    Patient: Yeah, you'd think. But then the boss came in the other day, and said that he was assigning me the responsibility of developing the online shopping cart. And he specifically wanted me to use something called "sessions". And, of course, just to make things interesting, he said that he wanted it up and running in two days...the sadistic little freak!

    Psychiatrist: Is that a problem?

    Patient: Yup, especially since I don't know the first thing about what a "session" is, or how to go about using one. I mean, I thought a session is something a shrink does with a patient - kinda like what we're doing right now.

    Psychiatrist: Oh, Victor, Victor...is that all that's bothering you? I think I have something that might help...

     
     
    >>> More PHP Articles          >>> More By Vikram Vaswani and Harish Kamath, (c) Melonfire
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT