I have a session
<?session_start();
$sessionId = session_id();
now I want to write that id into the database, but nothing is stored! why? how can I solved it? I need the id so I can recognize a customer.
$query = "INSERT INTO shop (qty,sessionid) VALUES ('1','$sessionId')";
thanks!