[eluser]JHackamack[/eluser]
AH, i see the problem
$this->session->userdata(’$ses’);
won't evaluate to the $ses variable because its in single quotes. The best way is to remove the quotes all together
$this->session->userdata($ses);
If you really want to use quotes, wrap $ses in "
$this->session->userdata("$ses");