Add custom value in session
Drupal bootstrap takes care of session_start for you, so you should be able to define sessions like...

$_SESSION['my_data'] = 'my value';


You can also add the following in settings.php to determine the life span of the session

ini_set('session.cache_expire',     200000);