Storing Simple Data Types in Sessions
<?php session_start(); (int) $_SESSION['integer_value'] = "115"; (string) $_SESSION['string_value'] = "Hello World"; (float) $_SESSION['float_value'] = "1.07"; function outputsessions (){ echo $_SESSION['integer_value'] . "<br />"; echo $_SESSION['string_value'] . "<br />"; echo $_SESSION['float_value'] . "<br />"; } outputsessions(); ?>