Hi, Currently they are both using the database version of storing session data. I am confused, then, why a new session is created when one goes from one area of the site to another. For example, if I go into the Cake portion first, then a CAKEPHP cookie is created with a new session id that is added to the database. When I go to the SMF section, another session is created and another cookie is created (SMFCookie655). Is this because they have different cookie names? The SMF path is "/" whereas the Cake cookie path is the cake application directory. They will both be the same on the production server, though.
- Sohum. On Aug 7, 3:59 am, "Geoff Ford" <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
