title: when i login session reads only one character in php
body: <p>assigning a variable to $_SESSion. when I echo that session its shows the one character example</p>
  
  <p>$name="abcd";
  this echo result is abcd.
  $_SESSION['abcd'] = $name;
  this echo result is 'a' char only</p>
  
  <pre><code> &lt;?php
  include("dbConnect.php");
  if (isset($_POST['username'])) {
      $name = $_POST['username'];
      $_SESSION = $name;
  }
  if (isset($_POST['password'])) {
      $password = $_POST['password'];
      $_SESSION = $password;
  }
  
  try { 
  
      $conn = connect(); 
  
      $sql="SELECT id,employee_name,email,phone,password,image,created_on FROM handel WHERE employee_name = '$name' AND password = '$password' ";
      $result=mysqli_query($conn,$sql);
  
      close($conn);
  
  } catch (Exception $e) { 
      //echo $e-&gt;errorMessage(); 
      close($conn);
      errorPage();
  }
      // Associative array
      $data = mysqli_fetch_array($result,MYSQLI_ASSOC);
      print_r($data);
      echo $operatorId = $data['id'];
      echo $_SESSION['employee_name'] = $data['employee_name'];
      $_SESSION['email'] = $data['email'];
      $_SESSION['phone'] = $data['phone'];
      $_SESSION['password']=$data['password'];
      $_SESSION['image']=$data['image'];
      $_SESSION['created_on']=$data['created_on'];
   ?&gt;
  </code></pre>
  
  <p>$name="abcd";
  this echo result is abcd.
  $_SESSION['abcd'] = $name;
  this echo result also show 'abcd'</p>