I don't know the details of the cake session component, or sessions in
general, but I believe that the sessions work by creating a cookie with a
unique code.  This code points to the session file (or db record) where the
session data is stored.

So from my understanding, as long as both smf and cakephp use the same
cookie name, and that cookie has a path that is high enough in the domain
path to cover both applications, then they will share the session data.

If smf is using a custom session handler, such as a database or similar, you
will have to replicate that session handler for the cake stuff.  If they are
both using the built in php file based session there should be no drama.

Geoff

On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hmm.
>
> Maybe I should just ignore Cake sessions? Do sessions also have a path
> defined, and would this path have to be set to the server root or the
> cake root in SMF for that session data to transcend to the Cake
> application? I cannot see why else Cake would create a new session
> when there was already a session defined on that domain.
>
> - Sohum.
>
> On Aug 6, 7:38 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> > On 8/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > How do I change the Cake session id to something of my choice?
> > > Basically, I want to put in a check on every page load to see if the
> > > forums session id has been created and if so, set the cake PHP session
> > > id to that, so that both applications use the same session ID's.
> >
> > In my opinion you will have to create your own custom session handler
> > in order to accomplish this.
> >
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
> >
> > My motto for 2007:  "Just build it, damnit!"
> >
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard
>
>
> >
>


-- 
http://lemoncake.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to