Thanks, I fixed it like this: I put in bootstrap setting session Id bfore
_initSession (session start) and it works fine, bu tI have this code on
every request, ionstead having it only in one controller.

Also, this is a security issue, because everyone can change uploadify
settings on the client (sid) and ride on other people session.

Regards,
Saša Stamenković


On Tue, Mar 9, 2010 at 12:29 AM, unifant <[email protected]> wrote:

>
> Hi Saša,
>
> i had the same problem. I have done it the following way:
>
> $("#upload").uploadify({
> 'uploader' : 'uploadify.allglyphs.swf',
> 'script' : 'upload_action_uploadify.php',
> 'scriptData' : {
>        'PHPSESSID':'{$session_id}'
> } ...
>
> In the script where i process the images:
> $sid = $_POST['PHPSESSID'];
>
> Zend_Session::setOptions(array('strict' => 'on)); // So you tell him, that
> Session has to be startet manualy
>
> if ( !empty($sid) )
>    Zend_Session::setId($sid);
>
> Zend_Session::start();
>
> It is important, that the Zend_Session::setId($sid); is done before
> Zend_Session::start(); and this before Namespace (if you use it)
>
> So it works for me
>
> Greets Yasin
>
> --
> View this message in context:
> http://n4.nabble.com/Zend-Session-setId-tp643859p1585346.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to