How would I store this in a session:

<?php
if(isset($_GET['gassearch'])){
echo $_GET['gassearch'];}
else{ echo $_GET['gassearch'] = 'not ordered';}
?>

I need to access this info on another page if it's possible.

Many thanks