@arun please use the following to set and get sessions.
Set Session:
<?php
set_session("{name}","{data}");
?>
replace {name} with the name you want to access the session with and replace {data} with the value you want to store.
Get Session:
replace {name} with the name you used previously for creating the session, to get the session.
<?php
get_session("{name}");
?>