In your script write:

if(isset($_COOKIE["PHPSESSID"])){
        session_id($_COOKIE["PHPSESSID"]);
}

then write and read to this session as usual.


On 29 янв, 08:30, EVIL09 <[email protected]> wrote:
> Hello Cake Gurus ,
>
> I'm requesting your help after reading many sites, I haven't been able
> to find the answer to this question:
>
> How do I share session data with my cake application?
>
> Here's the deal:
>       I  have 2 applications in my server, the first one without Cake
> (the web portal), the second one using Cake.
>
>       The session is started using the web portal and I want to use
> this session in my cake application. However
>       the cake application doesn't use the correctly this session. I'
> m already using this line of code on: core.php
>                                define('CAKE_SESSION_COOKIE',
> 'PHPSESSID');
>
>       To indicate that cake must use this session.
>
> I've been looking for answers and this ones is supposed to fix the
> problem but it doesn't work, may be I don't know how to use it, the
> answer I have is this:
>
> "
> This question pops up once in a while: "How do I share session data
> with a third-party application?
>
> Thankfully the answer is pretty simple, just make sure that the
> session (cookie) name is the same for both apps.
> In CakePHP it's set in the core.php... Configure::write
> ('Session.cookie', 'PHPSESSID');
>
> "
>
> The Cake version is : 1.1.19.6305
>
> Thanks in advance!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to