Problem with BOSH session attach

Hello, I’m using PHP to establish connection with OpenFire server before page loads and strophe.js for session attachment after.

Very first attachment works perfectly, however all followed attachments (on page reloads) results in ~15 seconds timeout with “404 Not Found”.

Openfire log: “Packets could not be found for session <my_session> cannot be delivered to client”

JID, RID and SID values are correct, SID value is incremented by 1 before attach.

Any ideas what a solution might help ? (sample.PNG)