Session with Memcache not working

Small coding issues were there, after fixing memcache will work as session handler.