Page 1 of 1

Problem with session variables

Posted: Fri Jun 19, 2009 2:37 pm
by skum3
Hi, i use the lastest verion of Jfileupload. I would recover a session variable which contains the folder path upload, in order to put this in the 'upload_dir' variable of process.php, but it seems empty when i lauch an upload...
I have read tutorial about session, but I don't understand this. How can i proceed in order to recover my session variable ?

Thanks in advance.

Re: Problem with session variables

Posted: Fri Jun 19, 2009 6:33 pm
by support
You're using PHP ?
If so then something like below should work:

Code: Select all

<?php
 // Start your PHP session ...
 // ...
 $session = session_name()."=".session_id();
?>
<PARAM NAME="url" VALUE="http://server.com/upload.php?<?php echo $session> ">
Does it help ?