Implement session function in PHP3 (attached, use of cookie function library: Test

Source: Internet
Author: User
Tags implement valid
cookie|session| function <?php require ("");?>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >


<P> set cookies anywhere on the web
if (! $show) {
$username = "liubing";
Jssetcookie ("username", "liubing", 1);
echo "<p>cookie username is set to $username <br>";
echo "Valid for 1 minutes <br>";
echo "<a href= ' $PATH _info?show=1 ' > try Cookiee have no effect </a>";
echo "<p> read the cookie username value is: $username <br>";
echo "is valid for 1 minutes, 1 minutes later refresh this page will not see the <br>";
</a> ";


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.