dio-v
1/31/2016 - 9:40 AM

Check if empty before getting

Check if empty before getting

if (isset($_GET['var']) && $_GET['var'] !== ''){
  $_SESSION['foo'] = $_GET['var'];
}