Current location: Hot Scripts Forums » Programming Languages » PHP » session question

session question

Reply
  #1 (permalink)  
Old 11-07-09, 01:48 PM
wirehopper's Avatar
wirehopper wirehopper is offline
Community Liaison
 
Join Date: Feb 2006
Posts: 1,563
Thanks: 2
Thanked 25 Times in 25 Posts
Sessions can be tricky, and the behavior varies by browser, server, and user actions.

I recommend trusting the cart's session management. As far as I know, there is only one session - although there may be many session variables.

What's really happening is that there is a file, usually stored in /tmp, with all the data for the session, which is read and updated as the user makes requests from and responds to the server. At the same time, there's a cookie on the client side, which stores the session id and perhaps some other data. The amount of time these files persist defines the length of the session.

When you work with open source software, the less you change, the better. Try to keep any modifications as simple as possible, and avoid modifying the original code - either fit into the architecture with modules, or use includes. It can be really difficult to avoid breaking the cart or adding security problems. If you feel like you need to make a lot of changes to use Magento, you might want to pick a different platform.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Security (Continued from post below) nova912 PHP 1 09-05-06 10:29 AM
Injecting a string into an If Statement ? nova912 PHP 4 07-21-06 03:04 PM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' Dr. Forensics PHP 3 07-15-06 04:54 PM
Simple Session ID Length Question? nova912 PHP 1 06-11-06 05:30 PM


All times are GMT -5. The time now is 10:58 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.