Sunday, December 9, 2012

Re: Using database session in the filemanager

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 <jmebis@gmail.com> 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 cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com.
> 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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.

No comments: