RuianUploadifyBundle icon indicating copy to clipboard operation
RuianUploadifyBundle copied to clipboard

Wiped Session or Crash

Open Critical-Impact opened this issue 13 years ago • 1 comments

Hi I've been able to get your uploader to work albiet by modifying your code, which seems weird because I believe it should work.

When I use your sample code normally, my session gets wiped(I'm using Craue's form flow bundle so each step is stored in the session).

I attempted to pass the session directly from the controller into the _sessionid of the uploadify script, this uploaded the file but in the returned JSON there was a fatal php error "Exception thrown without a stack frame".

The only way I've been able to get it to both submit and not clear my previous session is by removing this segment of code $request->cookies->set(session_name(), 1); session_id($this->decrypt($request->request->get('_sessionid'))); from RequestListener.php

I'm using the 2.0x branch of symfony if it helps.

Critical-Impact avatar Apr 07 '12 06:04 Critical-Impact

if you remove these lines, you disable the ability of uploadify to upload in secured area like Admin zone.

ruian avatar Apr 09 '12 15:04 ruian