emil.c
emil.c

Reputation: 2018

How to pass session over fancyupload

This question might have been there, but it's answered really generally, I'd appreciate if somebody tell me exactly how to pass the session variables and retrieve them.

I already set appendCookieData: true in swiffuploader options. How do I pass the session variables?

Thanks.

Upvotes: 0

Views: 196

Answers (1)

zorbash
zorbash

Reputation: 33

fancyupload will set $_POST['PHPSESSID'] based on the session cookie.

Assuming that you have php on the server side make sure that the script that receives the the files starts the session like:

if(isset($_POST['PHPSESSID'])) {
    session_id($_POST['PHPSESSID']); 
}
session_start();

Upvotes: 1

Related Questions