hope I understood ...
normally there is no need to put data from a session variable into a hidden input in order to process the information along with the form data.
this is because in every script which has a session_start() call, session variables are directly available (via $_SESSION['username'] or directly as $username, depending on the coniguration). this is valid for the form processing script, too - you can draw username from the session and process it. no need to have it in the post data instead.