本文介绍了PHP会话处理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建简单的网站.在w3wchools网站的帮助下,我开发了一些会话处理脚本.该脚本在我的本地主机上运行良好.但有时它在上传的服务器中不起作用.昨天它在服务器上工作.但它不起作用.一段时间后它的工作..
文件1
I am creating simple website. With the help of w3wchools website i developed some session handling scripts . that scripts are working well on my localhost. But its not working in uploaded server sometimes. Yesterday its worked in server. But its not working. after some time its working..
File 1
<?php
session_start();
$_SESSION["username"]="suyambu";
?>
文件2
file 2
<?php
session_start();
echo $_SESSION["username"];
?>
在我访问文件1之后,我访问了第二页..但没有输出.. :(
请帮助我
after i visit the file 1 i visited 2nd page..but no output.. :(
Please help me
推荐答案
文件2
file 2
<?php
session_start();
echo
在我访问文件1之后,我访问了第二页..但没有输出.. :(
请帮助我
after i visit the file 1 i visited 2nd page..but no output.. :(
Please help me
这篇关于PHP会话处理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!