Sessions and uploadify

Posted by Uffo on Stack Overflow See other posts from Stack Overflow or by Uffo
Published on 2009-08-16T16:20:14Z Indexed on 2010/05/27 11:41 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

I'm using uploadify, and i can't set sessions in my php files, my script looks like this:

    $("#uploadify").uploadify({
        'uploader'       : '/extra/flash/uploadify.swf',
        'script'         : '/admin/uploads/artistsphotos',
        'scriptData'     : {'PHPSESSID' : '<?= session_id(); ?>'},
        'cancelImg'      : '/images/cancel.png',
        'folder'         : '/img/artists',
        'queueID'        : 'fileQueue',
        'auto'           : false,
        'multi'          : true,
        'onComplete'     : function(a, b, c, d, e){

        },  
        'onAllComplete': function(event,data){
        	$bla = $('#art').find(':selected',this);
        	$fi  = $bla.val();
			 $.ajax({
			   type: "POST",
			   url: "/admin/uploads/artistsphotosupload",
			   data: "artist="+$fi,
			   success: function(msg){
			     console.log(msg);
			   }
			 });
     }
});

And in php if i try:

$_SESSION['name'] = 'something';

I can't access it in another file.and i have session_start(); activated Any solutions?

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery