Session with Memcache not working

Small coding issues were there, after fixing memcache will work as session handler.

Fixes this issue : http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29759