I didn't try installing the filemanager as a Vendor. I will read about that in the cookbook.
I know that u have to use php for accessing my database but I do need the session id for searching in the cake_sessions table. The $_SESSION remains empty. I found this article about the problem http://bakery.cakephp.org/articles/brightball/2009/02/18/using-cake-sessions-outside-of-cake but I do not quite understand it. Op zondag 9 december 2012 22:47:05 UTC+1 schreef cricket het volgende: > > Just a thought: Have you tried installing this filemanager in Vendor > and then creating a Component that Cake can use to interact with it? > > On Sun, Dec 9, 2012 at 3:35 PM, mebibyte <[email protected] <javascript:>> > wrote: > > Thanx for your respons > > > > Your suggestion is working when I use this configuration > > Configure::write('Session', array( > > 'defaults' => 'php' > > )); > > but not when I use > > Configure::write('Session', array( > > 'defaults' => 'database' > > )); > > > > The filemananger is not working through the cakephp framework. So I > can't > > use the $this->Session->read('FileManager.access'); > > I'm doing this: > > session_name('CAKEPHP'); > > session_start(); > > if($_SESSION['filemanager'] != 'true') {die();} > > > > However, in this method the $_SESSION remains empty. > > > > > > Op zaterdag 8 december 2012 13:16:17 UTC+1 schreef mebibyte het > volgende: > >> > >> Hey > >> > >> I'm using the simogeo filemanager and I want to check if the user is > >> authorized to acces the filemanager. > >> When I use the php session, I can acces the session data. But I want to > >> use the database session in cakephp and with that I can't acces the > session > >> id for searching in my database table. > >> > >> So, how can I get the id which is saved in the database session? > >> > >> Thanx > >> > >> > >> > >> > > -- > > Like Us on FaceBook https://www.facebook.com/CakePHP > > Find us on Twitter http://twitter.com/CakePHP > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "CakePHP" group. > > To post to this group, send email to [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
