This isn't working:
$.ajax({url: "PStoreZoomArea.php", type: "get", data: {"mapza": mapZoomArea, "mapc": mapCenter, "mapz": mapZoom}})
The code in the PHP-file:
$_SESSION['mapZoomArea'] = (isset($_GET['mapza']) ? $_GET['mapza'] : '1');
$_SESSION['mapCenter'] = (isset($_GET['mapc']) ? $_GET['mapc'] : '(55.67893946343211, 12.568359375)');
$_SESSION['mapZoom'] = (isset($_GET['mapz']) ? $_GET['mapz'] : '11');
If I only send one value it's working, but not with several. I have also tested to use a AJAX call for each value, but not working either. What could be wrong?