thanks for the response. Typically I have now found the mistake, after
posting... this tends to happen to me.
Here's what happened. We have an auto-complete input box that uses an
ajax call to find the users in the system. Since this can be used
multiple times, I cached the results in the session, to make
consequent lookups faster. I think what happened is that this was too
big for the session to handle, and so the search criteria never
actually got persisted. This maybe a database thing since I'm using
the database to keep the session information. I removed the learner
session caching and it now works like a charm.
Good to know that http and https could give problems. I'll bear that
in mind when we secure our site a bit more.
Thanks again.
On Oct 29, 12:14 pm, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Are you switching between http and https at any time?
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 29 Oct 2010, at 05:52, Squire wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I've just encountered a really strange problem on one of our
> > production sites. This is the scenario:
>
> > We have a reporting page where a user can put in search criteria.
> > Those search criteria are saved in the session, and the data is
> > returned. Then the user can download the report. The download action
> > uses the search criteria from the session and returns the report.
>
> > This code works in production on 3 different sites, but this week one
> > (after an upgrade) the problem started (only on one site). The code is
> > identical as is the database schema, but for some reason, the session
> > data gets lost between the requests. The rest of the session stays
> > intact. So far I've noticed that the session is there even when the
> > view gets displayed, however at the next request in beforeFilter the
> > session has lost the report search data. I've put it in code here:
>
> > getReport()
> > ...
> > $this->Session->write('Report',$search);
>
> > downloadReport()
> > if (!$this->Session->read('Report')) {
> > return;
> > }
>
> > The closest i've come is deleting a whole bunch of records from the
> > user table in the offending setup. That helped, but i'm not yet sure
> > why and which records. Does anybody have a clue why this would happen?
> > It seems to me the data is dropped at the beginning of the
> > downloadReport request for some unknown reason!?
>
> > Any help would be much appreciated.
> > Nico
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> > 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 For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment