Topic: Insert Optional Variable

I'am success intergrated plupload with xfilesharing pro, but. my problem, session cannot read to database. How to Solution. my code.

<hmtl>
    <head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="<TMPL_VAR site_url>/jquery.uniform.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
      $(function(){
        $("input, select, button").uniform();
      });
    </script>
    <link rel="stylesheet" href="<TMPL_VAR site_url>/uniform.default.css" type="text/css" media="screen">
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" />
    <link rel="stylesheet" href="<TMPL_VAR site_url>/js/jquery.ui.plupload/css/jquery.ui.plupload.css" type="text/css" />

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>

    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.gears.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.silverlight.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.flash.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.browserplus.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.html4.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/plupload.html5.js"></script>
    <script type="text/javascript" src="<TMPL_VAR site_url>/js/jquery.ui.plupload/jquery.ui.plupload.js"></script>

    <Script type="text/javascript">
var ext_allowed='<TMPL_VAR ext_allowed>';
var ext_not_allowed='<TMPL_VAR ext_not_allowed>';
var max_upload_files='<TMPL_VAR max_upload_files>';
var descr_mode='<TMPL_VAR enable_file_descr>';
var utype='<TMPL_VAR utype>';
var public_on='<TMPL_VAR enable_catalogue>';
var lang_description='<TMPL_VAR lang_description>:';
var lang_published='<TMPL_VAR lang_public>';
//var srv_tmp_url='<TMPL_VAR srv_tmp_url>';
</Script>
    </head>
    <body>

<form  method="post" action="<TMPL_VAR srv_cgi_url>/upload.cgi?upload_id=" method="post" onSubmit="return StartUpload(this);">
<input type="hidden" name="upload_type" value="file">
<input type="hidden" name="sess_id" value="<TMPL_VAR sess_id>">
<input type="hidden" name="srv_tmp_url" value="<TMPL_VAR srv_tmp_url>">
    <div id="uploader">
        <p>You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.</p>
    </div>
</form>
<script type="text/javascript">
// Convert divs to queue widgets when the DOM is ready
$(function() {
    $("#uploader").plupload({
        // General settings
        runtimes : 'html5',
        url : '<TMPL_VAR srv_cgi_url>/upload.cgi?upload_id=" method="post" onSubmit="return StartUpload(this);',
        max_file_size : '1000mb',
        max_file_count: 20, // user can add no more then 20 files at a time
        chunk_size : '10000mb',
        unique_names : false,
        multiple_queues : true,


           
        rename: true,
       
        // Sort files
        sortable: true,

       
        // Flash settings
        flash_swf_url : '../../js/plupload.flash.swf',

        // Silverlight settings
        silverlight_xap_url : '../../js/plupload.silverlight.xap'
    });

    // Client side form validation
    $('form').submit(function(e) {
        var uploader = $('#uploader').plupload('getUploader');

        // Files in queue upload them first
        if (uploader.files.length > 0) {
            // When all files are uploaded submit form
            uploader.bind('StateChanged', function() {
                if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
                    $('form')[0].submit();
                }
            });
               
            uploader.start();
        } else
            alert('You must at least upload one file.');

        return false;
    });
    

});
</script>
<br /><br />


<div id="codes0" style="display:none;">
<br>
Download links:<br><textarea id="codes0t" cols=36 rows=5 class="myForm" style="width:500px;" onFocus="copy(this);" WRAP=OFF></textarea><br>
</div>
<div id="codes1" style="display:none;">
Forum codes:<br><textarea id="codes1t" cols=36 rows=5 class="myForm" style="width:500px;" onFocus="copy(this);" WRAP=OFF></textarea><br>
</div>
<div id="codes2" style="display:none;">
HTML codes:<br><textarea id="codes2t" cols=36 rows=5 class="myForm" style="width:500px;" onFocus="copy(this);" WRAP=OFF></textarea><br><br>
</div>
<iframe src="javascript:false;" name="xupload" style="position:absolute;top:-9999px;"></iframe>
<Script type="text/javascript">
InitUploadSelector('files_list','my_file_element','<TMPL_VAR max_upload_files>');
document.getElementById('progress_frame').allowTransparency="true";
</Script>



</body>
</html>