我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

遗留代码非常奇怪的SESSION行为

I am working on a symfony project which uses really old legacy code probably from year 2003. I have a strange problem in one of the legacy code function which writes

$_SESSION['basket'] = serialize($data); 

For some reason the $_SESSION['basket'] only get created during execution and once the script ends $_SESSION does not contains the key basket. If I test this in my normal symfony controller it works fine.

What could be the problem for it not storing the key and value?

近期文章

  • PHPMailer忽略
  • Yii登录不会重定向到我想要的页面
  • 动画介绍页面/背景到下一页
  • Shopify经常性费用和一次性费用
  • PHP表单空验证不起作用
  • 检索会话变量中的Div id
  • php连接到mysql不起作用(raspberry pi 3 / apache2)
  • Ajax html输入值显示为空
  • 将数据从MySQL数据库加载到HTML文本框
  • Jquery filer.js Ajax请求不发送更新的变量值
  • 如何删除“编辑此条目”?
  • Zend Framework 2将对象作为查询结果返回
  • PHP用户身份验证和安全方法:LDAP-AD和SQL Server
  • 允许用户在输入中输入逗号分隔值并返回唯一项
  • 每次调用时更改变量值
  • PHP setcookie()问题
  • 如何允许用户访问控制他们不同的配置文件元素?
  • 对象属性未显示
  • 如何将我的域重定向到子域,而不会丢失以前的重定向?
  • AS3相当于PHP的deg2rad

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华