Hi,
I'm having an issue with session updates with Ajax.
I'm building sort of a shopping cart where products are stored in a session. I'm using JQuery to add, delete, update the session and refresh the shopping basket, but the external php page seems to create a new session in stead of updating the current one. I've echoed the session_id and both are the same.
I use the following script to check the session's content:
foreach($_SESSION["shopping_cart"] as $key => $value)echo "<br/>".$key."------".$value["description"];
I also checked the session cookie settings and both are equal except the domain is different so I tried setting the params before starting the session in the external file and then it returns the right domain but it still won't work:
session_set_cookie_params(100000,"/","www.bbt4vw.com");
session_start();
Does anyone know how to solve this one?
Kind regards