Re: Cakephp 2.0.3: Troubles with Sessions...

2011-12-02 Thread ava
SOLVED: removing the ? at the end of the controller solved the problem. Weird. On Nov 27, 7:30 pm, ava avon...@gmx.net wrote: @euromark how is the test case set up? Well, I call it several times by clicking on the link in the view.  I don't know if this answers your question... Anyway, I

Cakephp 2.0.3: Troubles with Sessions...

2011-11-27 Thread ava
Hi I'm struggling with sessions in cakephp 2.0.3. In this testcase the counter should be incremented with each click on the link. The counter always remains 1. // CONTROLLER ?php class Test01sController extends AppController { public $components = array('Session'); function

Re: Cakephp 2.0.3: Troubles with Sessions...

2011-11-27 Thread euromark
you can simplify the condition to if ($scounter = $this-Session-read('scounter')) {} but besides that how is the test case set up? because it is possible that it resets itself after each run therefore the session would always be emptied afterwards... On 27 Nov., 11:38, ava avon...@gmx.net

Re: Cakephp 2.0.3: Troubles with Sessions...

2011-11-27 Thread ava
@euromark how is the test case set up? Well, I call it several times by clicking on the link in the view. I don't know if this answers your question... Anyway, I tried to get a Session ID, but this doesn't return a value: function testsession() { if ($scounter =