Never mind everyone.. I solved this. The following code snippet works
in my controller logic:
list($cookieName, $cookieValue) = split("=",
$this->params["url"]["cookie"]);
session_destroy();
session_id($cookieValue);
session_name($cookieName);
session_start();
In my java script on the client side, I have a little bit of code that
assigns encodeURIComponent(document.cookie) to a query string variable
named "cookie".
And everything works perfectly.
On Oct 15, 1:02 pm, shan sinha <[EMAIL PROTECTED]> wrote:
> Hi folks-
>
> I am using a component for uploading files that does not
> (unfortunately) pass HTTP headers back up to the server when posting
> files. As a result, I am unable to retrieve session variables on
> handling the file uploads. Instead, the post of the files is being
> done through a new session.
>
> One workaround is to pass the session ID cookie through the query
> string on the post. However, when the cake controller/action receives
> this query string, is it possible for me to load the data from the
> session ID sent to me from the query string?
>
> Basically what I want to do is (in pseudo code):
>
> class MyController {
> function myAction() {
> $theRightSession = new Session( $session_id_from_query_string )
> }
>
> }
>
> Any thoughts?
>
> Please email me directly as well as I do not check this group
> regularly.
>
> Thanks-
> Shan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---