非常奇怪的会话行为 [英] very strange Session behaviour

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

问题描述

最近我遇到了一个非常奇怪的会话变量行为。如果cookie被禁用,会话ID完全错位(参见代码)。而是附加到它放在>之前的URL。锚标记。谁有任何想法,如何防止这种情况?


也许我应该注意,HTML来自XSL转换?

和另一个注释,如果anchor元素包含一个文本节点,变量插入是正确的。

展开 | 选择 | Wrap | 行号

解决方案


您可以通过在htaccess文件中添加以下内容来完全禁用URL SID:

php_value session.use_trans_sid 0

php_value session.use_only_cookies 1



来自此处。如果您已经尝试过,请道歉。



如果您已经尝试过,请道歉。



是的,我已经尝试过了。但是在浏览器中禁用cookie时会覆盖这些选项(如果启用了cookie,则一切正常)

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号


奇怪的行为 - 也许你应该打开一个 bug

recently I encounter a very strange behaviour of the session variable. if the cookies are disabled, the session id is totally misplaced (see code). instead being attached to the URL it is placed before the > of the anchor tag. has anyone an idea, how to prevent that?

maybe I should note, that the HTML is coming from a XSL transformation?
and another note, if the anchor element contains a text node, the variable insertion is correct.

Expand|Select|Wrap|Line Numbers

解决方案

You can completely disable URL SIDs by adding the following to your htaccess file:
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1

From here. Apologies if you have already tried that.


Apologies if you have already tried that.

yes, I’ve already tried that. but these option are overwritten when cookies are disabled in the browser (it all works well if cookies are enabled)

Expand|Select|Wrap|Line Numbers


That is strange behaviour - maybe you should open a bug.


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

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