This is shopping online page that a user can add what products he wants in his shopping cart, but when the user clicks on view shopping cart i need to pass the variable $_SESSION['cart_Name'] to shoppingcart.php page, to retrieve the info from the database, i tried this code :
in onlineshop.php:
<a href="shoppingcart.php?si=<?php echo session_id; ?>"><img src="cartt.png" alt="ٍShopping Cart" style="width:40px;height:40px"><br/>Shopping Cart</a>
in shoppingcart.php:
session_start();
session_id($_GET['si']);
but it gave me this error:
Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\xampp\tmp) in Unknown on line 0