I need to write a session id into a datbase.
so at the top of the page I have
<?session_start();
$sessionId = session_id();
later then I want to encode the session and write it into the database:
$session2 = session_encode();
$query = "INSERT INTO shop (sessionid) VALUES ('$session2')";
however it cuses problems, and it's not working, any tips how to handle this? thanks.