ZF2 - 在页面变化/刷新会议转储 [英] ZF2 - Session dump on page change / refresh

查看:121
本文介绍了ZF2 - 在页面变化/刷新会议转储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周,我问了一个问题是仍未解决(不幸)。链接在这里 :
页面之间 ZF2空会话容器

Last week i asked a question which is still unresolved (unfortunately). Here is the link : ZF2 empty session container between pages

我打开一个新的问题,今天,因为我发现更容易理解的线索来解释我的问题。

I'm opening a new question today because i found more understandable clues to explain my problem.

这是非常简单的:
Zend框架2和/或PHP转储/清除在每个页面加载或刷新我的会议容器。
它甚至这样工作带或不带AJAX调用。

This is very simple : Zend Framework 2 and/or PHP dump/purge my session containers on every single page load or refresh. It's even working like this with or without AJAX calls.

无论我做什么,我不能,因为所有被永久复位坚持我的会议DATAS。

Whatever i do, i can't persist my session datas because all is reset permanently.

我试过网络上发现了很多东西,比如:

I tried many things found around the web, like :


     
  • Zend的初始化会话管理器(有和没有SessionConfig)

  •  
  • 使用替代储量喜欢与Zend \\缓存\\存储
  • 内存缓存
     
  • ...

我现在正在四处找了2周以上的解决方案......,我无法找到任何解决我的问题。

I'm looking around for a solution for more than 2 weeks now ... and i can't find anything to resolve my problem.

我真的希望一些你们能帮助我。

I really hope that some of you guys can help me.

THX

推荐答案

我终于找到了我的解决方案,我是加入了 Zend的\\ DB \\的ResultSet 到会话中。
我想,因为这个对象过于庞大,它重载了会议......但是这仅仅是一个假设。

I finally found my solution, i was adding a Zend\Db\ResultSet to the session. I think, because this object is too huge, it overloads the session ... but this is only a supposition.

由于我通过映射对象的数组代替ResultSet中存储,一切工作正常。

Since i replaced the ResultSet storage by an array of Mapper objects, everything works fine.

顺便说一句,我看了看周围的互联网上,我并没有发现有关这样的问题任何事情。

By the way, i looked around on the internet and i didn't found anything about that kind of problem.

希望这会有所帮助。

非常感谢您的帮助,尤其是@TimFountain。

Thanks a lot for the help, especially to @TimFountain.

这篇关于ZF2 - 在页面变化/刷新会议转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆