SID在哪里?

编程入门 行业动态 更新时间:2024-10-24 23:29:33
本文介绍了SID在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

好吧,我会承认自己做错了(使用session_register()),所以我要求b $ b试图纠正我的方式,但是...... 我的脚本以 <?php session_start(); ?> 在我的页面正文中有如下链接: < a href =" targetUrl.php?< php print SID ; ?>">目标文字< / a> 问题:SID是一个空字符串。我甚至尝试了 echo" SID:" 。 SID。 ''< br />''; 和SID作为一个空字符串回应。为什么? ---迈克尔

OK, I''ll admit I''ve been doing it wrong (using session_register()), so I''m trying to correct my ways, but... My script starts with <?php session_start(); ?> In the body of my page a link as follows: <a href="targetUrl.php?<php print SID; ?>">Target text</a> Problem: SID is an empty string. I even tried echo "SID: " . SID . ''<br />''; and SID echoes as an empty string. Why? ---Michael

推荐答案

Michael Satterwhite写道: Michael Satterwhite wrote: 好的,我会承认我做错了(使用session_register()),所以我试图纠正我的方法,但...... 我的脚本以<?php session_start(); ?> 在我的页面正文中开始链接如下: < a href =" targetUrl.php?< php print SID; ?>">目标文字< / a> 问题:SID是一个空字符串。我甚至尝试过回声SID: 。 SID。 ''< br />''; 和SID作为一个空字符串回应。为什么? OK, I''ll admit I''ve been doing it wrong (using session_register()), so I''m trying to correct my ways, but... My script starts with <?php session_start(); ?> In the body of my page a link as follows: <a href="targetUrl.php?<php print SID; ?>">Target text</a> Problem: SID is an empty string. I even tried echo "SID: " . SID . ''<br />''; and SID echoes as an empty string. Why?

几个星期前我问过这个问题 - 你可能可以搜索 线程,虽然没有答案特别有启发性。它显示SID常量仅在某些情况下设置为。我从来没有确定过b $ b确实能够解决它们的问题。使用session_id()函数获取 会话ID - 这似乎是正确可靠的方法。 - 用于发布的电子邮件地址是垃圾邮件。请通过 www.derekfountain 与我联系:< a href =" http://www.derekfountain/"> Derek Fountain< / a>

I asked this a few weeks back - you might be able to do a search for the thread, although none of the answers were especially illuminating. It appears the SID constant is only set under certain circumstances. I never did work out what they were. Use the session_id() function to get the session ID - that appears to be the correct and reliable way to do it. -- The email address used to post is a spam pit. Contact me at www.derekfountain : <a href="www.derekfountain/">Derek Fountain</a>

Derek Fountain写道: Derek Fountain wrote: Michael Satterwhite写道: Michael Satterwhite wrote: 好的,我会承认我做错了(使用session_register()) ,所以我试图纠正我的方式,但是...... 我的脚本以<?php session_start(); < a href =" targetUrl.php?< php print SID; ?>">目标文字< / a> 问题:SID是一个空字符串。我甚至尝试过回声SID: 。 SID。 ''< br />''; 和SID作为一个空字符串回应。为什么? OK, I''ll admit I''ve been doing it wrong (using session_register()), so I''mtrying to correct my ways, but...My script starts with<?php session_start();?>In the body of my page a link as follows: <a href="targetUrl.php?<php print SID; ?>">Target text</a>Problem: SID is an empty string. I even tried echo "SID: " . SID . ''<br />'';and SID echoes as an empty string. Why?

几个星期前我问过这个问题 - 你可能可以搜索帖子,虽然没有一个答案特别有启发性。它出现SID常量仅在某些情况下设置。我从来没有弄清楚他们是什么。使用session_id()函数获取会话ID - 这似乎是正确可靠的方法。

I asked this a few weeks back - you might be able to do a search for the thread, although none of the answers were especially illuminating. It appears the SID constant is only set under certain circumstances. I never did work out what they were. Use the session_id() function to get the session ID - that appears to be the correct and reliable way to do it.

Would

SID帮助? SID help?

更多推荐

SID在哪里?

本文发布于:2023-11-08 06:56:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568658.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!