Re: Sharing Session across Different Applications

2008-01-18 Thread Kyo
It took a little time to figure out but now it works great! Actually I made no change to the above code. I just reuploaded the whole cake to the server. That's it. There must have been some other factors that triggered the problem. On Jan 18, 7:40 pm, Kyo <[EMAIL PROTECTED]> wrote: > Thanks Adam.

Re: Sharing Session across Different Applications

2008-01-18 Thread Kyo
Thanks Adam. I did the method you suggested and found it very nice, but I'm having another problem now. In my case, it works in two different cake applications within one domain, but it doesn't seem to work in two separate domains. I did the following: This does a redirect from siteA.com/blah/in

Re: Sharing Session across Different Applications

2008-01-17 Thread Adam Royle
Yes, here is one method of making it more secure. So have you two sites, siteA.com and siteB.com. User is browsing siteA.com and you want them transferred to siteB.com They click a link: eg. siteA.com/blah/redirectem/ In your redirectem method you get the current session id and save it into yo

Re: Sharing Session across Different Applications

2008-01-16 Thread Kyo
Following your instruction, now i figured out how to share sessions between applications. In my view I appended the session ID to the link like this: $html->link( 'Go to the other application',"http://www.example.com/ other_cake/tests/index/sess_id:{$session->id('Test')}"); On the other applicat

Re: Sharing Session across Different Applications

2008-01-16 Thread Adam Royle
Yes! When you transfer between applications (I'm guessing you have a link of some description) append the session id onto your querystring and use $this->Session->id($this->params['url']['sess_id']) on the other end. There are more secure approaches to this, but you still need to pass some kind of

Re: Sharing Session across Different Applications

2008-01-16 Thread Kyo
Yes, I use the same db for both applications. When I jump from one cake application to another, they store two session data with different IDs. Cookie got anything to do with it? On 1月16ζ—₯, 午後5:44, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 16, 6:15 am, Kyo <[EMAIL PROTECTED]> wrote: > > > I curre

Re: Sharing Session across Different Applications

2008-01-16 Thread AD7six
On Jan 16, 6:15 am, Kyo <[EMAIL PROTECTED]> wrote: > I currently use two Cake applications (beta 1.2) for my project but > I'm wondering if there is any way to share session data between those > two applications. Both applications have database sessions. Use the same db for both? It's pretty mu

Sharing Session across Different Applications

2008-01-16 Thread Kyo
I currently use two Cake applications (beta 1.2) for my project but I'm wondering if there is any way to share session data between those two applications. Both applications have database sessions. Regards, Kyo --~--~-~--~~~---~--~~ You received this message beca