Sunday, December 21, 2014

Re: flash session and authentication not work in production

You should point out what you want to read. Code should be:

  1. $this->Session->write('test','testval');
  2. debug($this->Session->read('test'));


On Sunday, December 21, 2014 8:40:31 PM UTC+2, Sekou Dioubate wrote:
when looking around I realized that this is the session component which not.

proof, the following code does not work:
  1. $this->Session->write('test','testval');
  2. debug($this->Session->read());

but with this php code next working well:
  1. $_SESSION['test']='testval';
  2. echo $_SESSION['test'];
  3. debug($_SESSION);

So I think that the problem comes from the session setup in app / config / core.php
  1. Configure::write('Session', array(
  2. 'defaults' => 'php'
  3. ));

I do not know how to set up for the adopted my server
g tried every possible case :

Configure::write('Session', array(

  1. 'defaults' => 'php'
  2. ));

Configure::write('Session', array(

  1. 'defaults' => 'cake'
  2. ));

Configure::write('Session', array(

  1. 'defaults' => 'database'
  2. ));
 






Le dimanche 14 décembre 2014 07:21:31 UTC, CUCULEAC STEFAN a écrit :
Hello Sekou.

I'm not an expert in Cakephp but before anyone can tell you something  t think  you have to check logs to see if you have errors there.
If you have could you post them? maybe someone can advise you. 

sâmbătă, 13 decembrie 2014, 21:05:14 UTC+2, Sekou Dioubate a scris:

hello,
I developed an application using cakephp 2.x. Everything works locally but when sent on the dedicated server online (for production), the flash session and authentication not works. I arrive I was logged. I am lost, I do not know where is the problem
thank you in advance!

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: