<?php require("cookie.inc.php3") ; ?>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>untitled</title>
</head>
<body>
<p>在网页的任何地方设置cookie
<?php
if (!$show){
$username="liubing";
jssetcookie("username","liubing",1);
echo "<p>cookie username 被设置成 $username<br>";
echo "有效期1分钟<br>" ;
echo "<a href='$path_info?show=1'> 试一下cookiee 有没有起作用</a>" ;
}
else{
echo "<p>读到的cookie username 值为: $username<br>";
echo "有效期1分钟,1分钟后再刷新本页面就会看不到了<br>" ;
</a>" ;
}
?>
</body>
</html>
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器