Too
I am sure that you could use a combination of controller logic and a small modification of your form to achieve this. I feel that there may be a better alternative, but I donβt have time to look far into it before I go to work. This solution should work fine, but I have never tested anything like this, so let me know.
In your form, you need to slightly modify the action using any variable in which you store your session_id instead of $ _SESSION ['id']:
form action = "http://mvc.testintranet.com/controller/action/" method = "post" then in your controller method (for this example, view):
function view($sessionId = null) { if($sessionId) { //do whatever you need to do here. For Example: $this->Session->write('Session.id', $sessionId); }
TA-dah. Hope this helps, let me know how this works for you.
source share