dragonusthei Posted September 27, 2006 Share Posted September 27, 2006 Whitch of the 2 would be better when programming a shopping cart? Link to comment https://forums.phpfreaks.com/topic/22239-cookies-vs-sessions-for-shopping-cart/ Share on other sites More sharing options...
steveclondon Posted September 27, 2006 Share Posted September 27, 2006 well of the two sessions but remember that the user must still have a cookie enabled to store the session id. the alternative is to put the session id then through the url if they do not have cookies set. Link to comment https://forums.phpfreaks.com/topic/22239-cookies-vs-sessions-for-shopping-cart/#findComment-99578 Share on other sites More sharing options...
dragonusthei Posted September 27, 2006 Author Share Posted September 27, 2006 how do i put a session id though the URL?and make it work like it was passed normally Link to comment https://forums.phpfreaks.com/topic/22239-cookies-vs-sessions-for-shopping-cart/#findComment-99588 Share on other sites More sharing options...
micah1701 Posted September 27, 2006 Share Posted September 27, 2006 by default, PHP stores the session ID as a cookie. If the user has cookies turned off, it automatically appends the URL w/ the session ID.test it this way - if it doesn't work, the you need to update your system settings. Link to comment https://forums.phpfreaks.com/topic/22239-cookies-vs-sessions-for-shopping-cart/#findComment-99762 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.