会议过早被破坏 [英] sessions being destroyed prematurely

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

问题描述



我有一个非常具体的问题,也许一些聪明的人在这里可以搞清楚。我有一个基于PHP的站点,上面有一些Java

小程序。会话变量正在被破坏

过早。我们使用PHP 5运行Apache2。


在网站上,有一个PHP会话变量,用于保存登录

信息。如果你去网站上的任何页面,会话变量

保持不变......除了带有Java小程序的页面。每个我们的
小程序都会向服务器发送POST和GET请求并检索

导致的php输出。

我们的小组已经确定$ _SESSION被设置为一个空数组

当applet的UrlConnection

类调用getInputstream()时,无论请求是否发生。虽然PHP会话cookie没有被删除但是没有删除。

有趣的是,当通过原型'Ajax.Request发送请求时,

会话变量仍然保持不变。只有Java小程序会导致问题。


这个问题对任何人都很熟悉吗?我非常感谢

任何帮助。


另一个(可能的)拼图:我们的IT安装了

以下PHP模块在问题开始发生的时候。

php5-pgsql

php5-suhosin

php5-uuid

php5-ps

php5-sqlite3

php5-pgsql

php5-mhash

php5-cli

解决方案

_SESSION设置为空数组

当applet的UrlConnection调用getInputstream()时/>
类,无论请求是否发生。虽然PHP会话cookie没有被删除但是没有删除。

有趣的是,当通过原型'Ajax.Request发送请求时,

会话变量仍然保持不变。只有Java小程序会导致问题。


这个问题对任何人都很熟悉吗?我非常感谢

任何帮助。


另一个(可能的)拼图:我们的IT安装了

以下PHP模块在问题开始发生的时候。

php5-pgsql

php5-suhosin

php5-uuid

php5-ps

php5-sqlite3

php5-pgsql

php5-mhash

php5-cli


Lee写道:




我有一个非常具体的问题或许一些聪明人

在这里可以搞清楚。我有一个基于PHP的站点,上面有一些Java

小程序。会话变量正在被破坏

过早。我们使用PHP 5运行Apache2。


在网站上,有一个PHP会话变量,用于保存登录

信息。如果你去网站上的任何页面,会话变量

保持不变......除了带有Java小程序的页面。每个我们的
小程序都会向服务器发送POST和GET请求并检索

导致的php输出。

我们的小组已经确定


_SESSION设置为空数组

当applet的UrlConnection

类调用getInputstream()时,无论如何如果请求发生。虽然PHP会话cookie没有被删除但是没有删除。

有趣的是,当通过原型'Ajax.Request发送请求时,

会话变量仍然保持不变。只有Java小程序会导致问题。


这个问题对任何人都很熟悉吗?我非常感谢

任何帮助。


另一个(可能的)拼图:我们的IT安装了

以下PHP模块在问题开始发生的时候。

php5-pgsql

php5-suhosin

php5-uuid

php5-ps

php5-sqlite3

php5-pgsql

php5-mhash

php5-cli



Java applets无法访问(至少不容易)PHP会话信息。


-

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

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

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


Hi,
I have a very specific problem that perhaps some of the smart people
here can figure out. I have a site based on PHP with some Java
applets on it. The session variables are being destroyed
prematurely. We are running Apache2 with PHP 5.

On the site, there is a PHP session variable that holds login
information. If you go to any page on the site, the session variables
remain intact... except the pages with Java applets. Every one of our
applets send POST and GET requests to the server and retrieve the
resulting php output.
Our group has determined that $_SESSION gets set to an empty array
exactly when getInputstream() is called by the applet''s UrlConnection
class, regardless if the requests happen. The PHP session cookie is
not deleted though.
Interestingly, when sending a request via prototype''s Ajax.Request,
the session variable still remain intact. Only the Java applets are
causing problems.

Is this problem familiar to anyone at all? I would really appreciate
any help.

One more (possible) piece of the puzzle: our IT installed the
following PHP modules around the time the problem started happening.
php5-pgsql
php5-suhosin
php5-uuid
php5-ps
php5-sqlite3
php5-pgsql
php5-mhash
php5-cli

解决方案

_SESSION gets set to an empty array
exactly when getInputstream() is called by the applet''s UrlConnection
class, regardless if the requests happen. The PHP session cookie is
not deleted though.
Interestingly, when sending a request via prototype''s Ajax.Request,
the session variable still remain intact. Only the Java applets are
causing problems.

Is this problem familiar to anyone at all? I would really appreciate
any help.

One more (possible) piece of the puzzle: our IT installed the
following PHP modules around the time the problem started happening.
php5-pgsql
php5-suhosin
php5-uuid
php5-ps
php5-sqlite3
php5-pgsql
php5-mhash
php5-cli


Lee wrote:

Hi,
I have a very specific problem that perhaps some of the smart people
here can figure out. I have a site based on PHP with some Java
applets on it. The session variables are being destroyed
prematurely. We are running Apache2 with PHP 5.

On the site, there is a PHP session variable that holds login
information. If you go to any page on the site, the session variables
remain intact... except the pages with Java applets. Every one of our
applets send POST and GET requests to the server and retrieve the
resulting php output.
Our group has determined that


_SESSION gets set to an empty array
exactly when getInputstream() is called by the applet''s UrlConnection
class, regardless if the requests happen. The PHP session cookie is
not deleted though.
Interestingly, when sending a request via prototype''s Ajax.Request,
the session variable still remain intact. Only the Java applets are
causing problems.

Is this problem familiar to anyone at all? I would really appreciate
any help.

One more (possible) piece of the puzzle: our IT installed the
following PHP modules around the time the problem started happening.
php5-pgsql
php5-suhosin
php5-uuid
php5-ps
php5-sqlite3
php5-pgsql
php5-mhash
php5-cli

Java applets can''t access (at least not easily) PHP session information.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这篇关于会议过早被破坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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