奇怪的会话问题 [英] weird session problem

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

问题描述

大家好,


我遇到了一个非常奇怪的会话问题。在locahost上开发。

刚刚回到我正在研究的项目,检查一切正常

并且登录功能不再正常工作,基本上是

会话变量不是通过页面传输的,除了,这是在野生动物园中这是奇怪的。当我回应其他页面上的会话变量

他们在safari中显示,但不在firefox,ie或opera中显示。所以登录在一个浏览器中工作

但在另一个浏览器中没有???
结构如下:

$ b主页上的$ b登录表格

登录页面拾取形成变量并设置会话变量

重定向到主页

主页检查会话变量


任何想法?

Hi all,

I am stuck with a very strange session prob. Developing on locahost.
Have just gone back to a project I was working on to check all is ok
and the login function is no longer working properly, basically the
session variables arent being carried over pages, except, and this is
strange, in safari. When i echo the session variables on other pages
they show in safari, but not in firefox, ie, or opera. So login works
in one browser but not in the other 3??

the structure is as follows:

login form on home page
login page pickups form variables and sets session variables
redirect to homepage
homepage checks for session variables

Any ideas?

推荐答案

2007年8月16日星期四17:24:38 + 0200,<是******* @ hotmail.comwrote:
On Thu, 16 Aug 2007 17:24:38 +0200, <is*******@hotmail.comwrote:

我遇到了一个非常奇怪的会话问题。在locahost上开发。

刚刚回到我正在研究的项目,检查一切正常

并且登录功能不再正常工作,基本上是

会话变量不是通过页面传输的,除了,这是在野生动物园中这是奇怪的。当我回应其他页面上的会话变量

他们在safari中显示,但不在firefox,ie或opera中显示。所以登录在一个浏览器中工作

但在另一个浏览器中没有???
结构如下:

$ b主页上的$ b登录表单

登录页面拾取形成变量并设置会话变量

重定向到主页

主页检查会话变量
I am stuck with a very strange session prob. Developing on locahost.
Have just gone back to a project I was working on to check all is ok
and the login function is no longer working properly, basically the
session variables arent being carried over pages, except, and this is
strange, in safari. When i echo the session variables on other pages
they show in safari, but not in firefox, ie, or opera. So login works
in one browser but not in the other 3??

the structure is as follows:

login form on home page
login page pickups form variables and sets session variables
redirect to homepage
homepage checks for session variables



没有代码,很难说。如果以前工作正常,跟踪

返回,直到你发现破坏代码的更改。

-

Rik Wasmus


登录页面的相关代码

========================= =======


if(mysql_num_rows(
relevant code for login page
================================

if(mysql_num_rows(


result)== 0)

{

echo"< br />< p>不正确的电子邮件或密码。< / p>" ;;

}

否则

{

echo"< p>您现在已登录。< / p>" ;;
result)==0)
{
echo "<br /><p>incorrect email or password.</p>";
}
else
{
echo "<p>you are now logged in.</p>";

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

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