[eluser]codex[/eluser]
Hi,
I have a custom upload controller. In this controller there are 2 functions:
1 that shows the upload form, 1 that does the uploading of the files.
The second function is being called by a javascript (jQuery) that does the uploading. For each file that is being uploaded I want to add it to a session for further processing, but the session is not being set.
I've done a test like so, but nothing is being set. Why is that? And is there a way around it?
Code:
function upload_files()
{
$_SESSION['test'] = true;
// rest of the code here etc
}
EDIT: Never mind. I think I've figured it out.