English 中文(简体)
坐视会继续超越成文
原标题:Session cookie keeps getting overwritten

在我提出申请时,我得到一.,其价值为:odm7krain1ms6bic7irfvpsj91。

as long as I stay on this tab and move through the application I m "usually" okay. If I open another tab and go the same url, I ll get a new cookie that overwrites the old one and my old session is lost. How can I prevent this from happening?

我看到,当我利用人权学会的要求也使我从本届会议上退出时,就会出现这种情况。

最佳回答

恳请在你的核心部分增加以下内容。 php file:

Configure::write( Session.checkAgent , false);
Configure::write( Session.ini ,array( session.cookie_secure  => false,  session.referer_check  => false));

这些参数应迫使 co子保持下去。 这将为PHP和CakePHP留出环境,使 co得以在https和https上长期存在。

问题回答

使用美元:





相关问题
performance improvements in CakePHP 2.0?

Can anyone attest to performance improvements in the upcoming CakePHP 2.0? I m facing a decision on a project: to go with current release of CodeIgniter or start with Cake and upgrade later to 2.0. ...

Save data in MongoDB subdocument with CakePHP

In CakePHP I am trying to save data in a subdocument like this: $mongo = $this->User->getDataSource(); $mongo->update($this->User, array( array( _id => $tweep[ User ]...

How do I use datasources in CakePHP 2?

My MongoDB datasource is located in plugins/mongodb. According to the new class loader in 2.0 I should do this: App::uses( MongodbSource , Mongodb.Model/Datasource ); But how do I initiate it? Or ...

FULL TEXT SEARCH in cakephp ? any example

I am using ordinary search functionality in my business controller . but now need to implement FULL TEXT SEARCH with paginate can any one give idea or sample ? I am using MySQL with MyISAM tabes ...

Themes in CakePHP 2.0.0-dev

Trying to set up a mobile theme in CakePHP 2.0.0-dev, but it isn t working as it did in 1.3. Have there been any changes to the themes implementation in 2.0? Structure as follows: app/views/themed/...

cakephp 2.0 features?

where can i read more about cakephp 2.0 features? cause i could find symfony 2.0 presentations but not for cakephp 2.0 thanks

Retrieve value from an Array in Cakephp

I am trying to get some data to display from an Array in Cakephp, the Array has all the data from a find() output and other parts of the data output fine. The data i am trying to access is the name ...

热门标签