Codeigniter : Undefined property: Welcome::$session

Codeigniter : getting the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Welcome::$session
Filename: core/Model.php
Line Number: 51

Solution:
open the conf/autoload.php and include session in the libraries array

$autoload['libraries'] = array('session');