Thank you for your response, it seems that the session variable was in
fact being changed depending on which device was accessing it.
It seems caches_action on the BaseController was causing all the
problems with the views being rendered.
I have conditions in my templates to render mobile browser views, the
caches_action overrode that evaulation, and just returned the cached
page. (I should have thought about how this only happened in
production mode)
So I removed caching for the pages it effected. Another way through
would be to have the controllers render different pages, as
caches_action doesn't override the Action Pack.
On Nov 26, 7:41 am, Carl Fyffe <
carl.fy...@gmail.com> wrote:
> Don't make store the information in the session, store it in a cookie.
> Or make it based on the domain they are accessing the site through
>
m.yoursite.com uses the mobile layout, all others use the desktop
> layout.
>
> <over-generalized-statement>Sessions are bad.</over-generalized-statement>
>