Problem with session variables

Upload core product.
Post Reply
skum3
Posts: 7
Joined: Fri Jan 02, 2009 10:55 pm

Problem with session variables

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Problem with session variables

Post 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 ?

Post Reply