|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Adding certain components will kill the session - core bug?Hi folks I was trying to get Simplepie component working (http:// bakery.cakephp.org/articles/view/simplepie-cakephp-component), and it worked fine. Here's what I did: - First I added the component 'Simplepie' to the controller: class UsersController extends AppController { var $name = 'Users'; var $components = array('RequestHandler','Upload','ImageUpload','Search','News','Simplepie'); // .... } Then I successfully displayed RSS feeds in my view. Everything worked, the Simplepie caching and all. Which means that the (tiny) Simplepie component can't be the problem. BUT my session! It was gone! I did a pr($_SESSION) and got an empty array. Once I removed Simplepie from the $components array, the session came right back, login credentials and everything. This has happened with a few other components in the past too. Anyone have an explanation? Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Adding certain components will kill the session - core bug?Are you sure the Simplepie (I do not know it, probably as a "vendors" ?) hasn't got a "session start" ? If so try to comment it. On Jun 5, 8:25 pm, Adam Friedman <AMFried...@...> wrote: > Hi folks > > I was trying to get Simplepie component working (http:// > bakery.cakephp.org/articles/view/simplepie-cakephp-component), and it > worked fine. Here's what I did: > > - First I added the component 'Simplepie' to the controller: > > class UsersController extends AppController { > > var $name = 'Users'; > > var $components = > array('RequestHandler','Upload','ImageUpload','Search','News','Simplepie'); > > // .... > > } > > Then I successfully displayed RSS feeds in my view. Everything > worked, the Simplepie caching and all. Which means that the (tiny) > Simplepie component can't be the problem. > > BUT my session! It was gone! I did a pr($_SESSION) and got an empty > array. > > Once I removed Simplepie from the $components array, the session came > right back, login credentials and everything. > > This has happened with a few other components in the past too. Anyone > have an explanation? > > Adam You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Adding certain components will kill the session - core bug?Great idea, but no, it doesn't. (Simple Pie, btw, is a news feed aggregator) On Jun 5, 6:23 pm, francky06l <franckl...@...> wrote: > Are you sure the Simplepie(I do not know it, probably as a > "vendors" ?) hasn't got a "sessionstart" ? If so try to comment it. > > On Jun 5, 8:25 pm, Adam Friedman <AMFried...@...> wrote: > > > Hi folks > > > I was trying to getSimplepiecomponent working (http:// > > bakery.cakephp.org/articles/view/simplepie-cakephp-component), and it > > worked fine. Here's what I did: > > > - First I added the component 'Simplepie' to the controller: > > > class UsersController extends AppController { > > > var $name = 'Users'; > > > var $components = > > array('RequestHandler','Upload','ImageUpload','Search','News','Simplepie'); > > > // .... > > > } > > > Then I successfully displayed RSS feeds in my view. Everything > > worked, theSimplepiecaching and all. Which means that the (tiny) > >Simplepiecomponent can't be the problem. > > > BUT mysession! It was gone! I did a pr($_SESSION) and got an empty > > array. > > > Once I removedSimplepiefrom the $components array, thesessioncame > > right back, login credentials and everything. > > > This has happened with a few other components in the past too. Anyone > > have an explanation? > > > Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Adding certain components will kill the session - core bug?On Jun 5, 8:25 pm, Adam Friedman <AMFried...@...> wrote: > Hi folks > > I was trying to get Simplepie component working (http:// > bakery.cakephp.org/articles/view/simplepie-cakephp-component), and it > worked fine. Here's what I did: > > - First I added the component 'Simplepie' to the controller: > > class UsersController extends AppController { > > var $name = 'Users'; > > var $components = > array('RequestHandler','Upload','ImageUpload','Search','News','Simplepie'); > > // .... > > } > > Then I successfully displayed RSS feeds in my view. Everything > worked, the Simplepie caching and all. Which means that the (tiny) > Simplepie component can't be the problem. > > BUT my session! It was gone! I did a pr($_SESSION) and got an empty > array. > > Once I removed Simplepie from the $components array, the session came > right back, login credentials and everything. > > This has happened with a few other components in the past too. Anyone > have an explanation? The whitespace in the component file, or one of the vendor files it includes. Enable debug and check for that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Adding certain components will kill the session - core bug?http://bin.cakephp.org/saved/33005 On Wed, Jul 9, 2008 at 2:25 AM, AD7six <andydawson76@...> wrote: > > > > On Jun 5, 8:25 pm, Adam Friedman <AMFried...@...> wrote: >> Hi folks >> >> I was trying to get Simplepie component working (http:// >> bakery.cakephp.org/articles/view/simplepie-cakephp-component), and it >> worked fine. Here's what I did: >> >> - First I added the component 'Simplepie' to the controller: >> >> class UsersController extends AppController { >> >> var $name = 'Users'; >> >> var $components = >> array('RequestHandler','Upload','ImageUpload','Search','News','Simplepie'); >> >> // .... >> >> } >> >> Then I successfully displayed RSS feeds in my view. Everything >> worked, the Simplepie caching and all. Which means that the (tiny) >> Simplepie component can't be the problem. >> >> BUT my session! It was gone! I did a pr($_SESSION) and got an empty >> array. >> >> Once I removed Simplepie from the $components array, the session came >> right back, login credentials and everything. >> >> This has happened with a few other components in the past too. Anyone >> have an explanation? > > The whitespace in the component file, or one of the vendor files it > includes. Enable debug and check for that. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Adding certain components will kill the session - core bug?That's excellent. Who's code is this originally? David's? I'd like to add that to the Book. On 7/10/08, Dardo Sordi Bogado <dardosordi@...> wrote: > > http://bin.cakephp.org/saved/33005 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Adding certain components will kill the session - core bug?I saw it in this group for the first time, thread: http://groups.google.com/group/cake-php/browse_thread/thread/67666750b8b1486e/3fc76910087d7ea2 I think is David's. On Thu, Jul 10, 2008 at 10:35 AM, Jonathan Snook <jonathan.snook@...> wrote: > > That's excellent. Who's code is this originally? David's? I'd like to > add that to the Book. > > On 7/10/08, Dardo Sordi Bogado <dardosordi@...> wrote: >> >> http://bin.cakephp.org/saved/33005 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |