//start a php session to preserve variables. if ( empty($mysessionname) ) { $micro = microtime(); $micro = str_replace(" ","",$micro); // strip out the blanks $micro = str_replace(".","",$micro); // strip out the periods $mysessionname = "po_maint" . $micro; } session_name($mysessionname); session_start();