Hi I have session problem in oscommerce. My problem is for just opera browser and Safari browser in MAC OS. In this browsers session in not maintaining for my site. So when I add something to cart, so for just once it display in cart but when I refresh the page then cart goes empty. Problem occurs only when there is no oscId in url. When there is a oscid exists in url then there is no problem with session. I have made custom url for my own. So login.php will like login only. Can anyone please figure out the problem. I can provide the url upon request. Thanks Avi
Logout and clear all your cookies. Add this line to index.php and or the login file just under <?php header('P3P: CP="CAO PSA OUR"'); Code (markup): If that still fails its because safari doesn't except 3third party cookies, thus if you have no cookies, you can't have sessions. IBM offer a free http://www.alphaworks.ibm.com/tech/p3peditor P3P Policy Editor which should work for all browsers.
When I have placed your header code in login file, then except mozila fire fox all browsers displaying cookies_usage.php file instead of login page. What can be a problem?
And what does that file display, does it allow the user to except cookies ? If you google "safari third party cookies " you will find a heap of information, most will boil down to creating a privacy policy (P3P), the IBM link above will help you with that.
I have attached the screen shot of the pages which I am getting in Opera and Mac Safari. Can you please look into it.? I am getting this page only in opera and Mac Safari.
Looks like instructions for the end user to edit their browser settings to allow cookies which is a good thing, I guess you could edit those and add instructions for the safari etc... I found these instruction after a quick search, once the end user completes either of these steps, they wont see that page again and everything should be fine. Choose Preferences from Safari menu Select Security icon Cookie settings are shown in window Choose your preferred settings Go to Opera in the main menu and select Preferences (or press Alt+P to access them directly) Select Privacy In addition to choosing different settings for first-party (normal) and third-party cookies, you may edit cookie settings on a domain/server basis or even edit individual cookies by clicking the Manage cookies button. ------------- Other then that, all I can suggest is that you create a P3P as above then you could remove that line of code provided above.
My opera setting already set to always accept. And same in safari. Can you please tell me, How can I set it for particular domain? Thanks Avi
Enable Cookies for opera by foll.instructions at http://www.timeanddate.com/custom/cookiesopera.html For Safari :: In order to enable/disable cookies from Safari web browser one need to perform below mentioned steps: 1) Open Safari web browser and click on menu bar. 2) Click on Preferences and security icons. 3) select/deselect option “Accept cookies: select Radio button "only from sites you navigate to" on requirement 6) Click ok to apply changes.