跨文件夹丢失会话 [英] Lost session across folders

查看:83
本文介绍了跨文件夹丢失会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好


我想知道以前是否有人遇到过这种情况。

我在一个文件夹中有2页表格。第二个处理和回复到page1的任何错误(通过重定向)。会话数据来回传递而不使用会话ID。


到目前为止一切正常工作


现在我将page2(处理脚本)移动到另一个文件夹并正确修改了它的路径。


现在错误(会话错误数组)现在更长时间回显到我检查了数据库并成功提交了数据,通常会有成功或错误的消息,但现在不再存在。


可能因为我没有使用会话ID吗? br />

我感谢任何帮助我可以得到

Good morning everyone

I wonder if anyone encountered this situation before.
I have a 2 pages form inside a folder.The second one processes and echoes any errors to page1(thru a redirect).Session data is passed to and fro without using a session id.

All is working fine so far

Now I moved page2 (the processing script) to another folder and correctly modified the path to it.

Now the errors (a session error array) is now longer echoing to page1.I checked the database and data is submitted successfully,Normally there is a message of success or errors,but not anymore.

Could it be because am not using a session id ?

I appreciate any help i can get

推荐答案

对不起Jankie,Quistion不是那么清楚(对我来说)。可能与你的编码很容易让我理解。你能在这里发帖吗。
Sorry Jankie, Quistion is Not That much clear(to me). may be with your Codings It is easy for me to understand. Can you post them here.


Page1(表格)

[php]

<?php

session_start();

foreach(
Page1(form)

[php]
<?php
session_start();
foreach(


_POST as


这篇关于跨文件夹丢失会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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