| | |
Cookie or Session for shopping card
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 495
Reputation:
Solved Threads: 0
Hi,
I use PHP and have a question.
As cookies and sessions have their pros and cons, I don’t know which one is better for shopping card.
If I use cookie then user my block it. Therefore, my e-commerce web site won’t serve the purposes.
If I use session then the content stored in current session will not be remembered in next visit.
What do you prefer?
Thanks
I use PHP and have a question.
As cookies and sessions have their pros and cons, I don’t know which one is better for shopping card.
If I use cookie then user my block it. Therefore, my e-commerce web site won’t serve the purposes.
If I use session then the content stored in current session will not be remembered in next visit.
What do you prefer?
Thanks
•
•
•
•
Hi,
I use PHP and have a question.
As cookies and sessions have their pros and cons, I don’t know which one is better for shopping card.
If I use cookie then user my block it. Therefore, my e-commerce web site won’t serve the purposes.
If I use session then the content stored in current session will not be remembered in next visit.
What do you prefer?
Thanks
Last edited by csharplearner; May 14th, 2009 at 9:02 am.
Well if they block cookies they're blocking sessions as well since a user's SESSIONID is stored in a cookie.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
•
•
Well if they block cookies they're blocking sessions as well since a user's SESSIONID is stored in a cookie.
if we store the users ip and items in the cart in the database by sessions and later retreive them from database when visitor visits back and use them wouldnt that work?
•
•
•
•
Using Sessions one need not store it on user's computer,
if we store the users ip and items in the cart in the database by sessions and later retreive them from database when visitor visits back and use them wouldnt that work?
same ip different user
ip addresses are not fixed they are at the discretion of the ISP
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
![]() |
Similar Threads
- IE6/IE7 unexpectedly drops the PHP Session ID cookie (PHPSESSID) (PHP)
- shopping card implementation (PHP)
- Session storing problem (PHP)
- Deleting session cookie (PHP)
- Shopping Cart Not Working (ASP.NET)
- Invalid Session when clicking a link (PHP)
- How to Connect Credt Card company to my web site? (IT Professionals' Lounge)
- howto: expire cookie at end of session? (PHP)
- Help with Forums. (PHP)
Other Threads in the PHP Forum
- Previous Thread: Email format with php form
- Next Thread: Site root - Not understanding which variable to use
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions simple sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






