Php+html to achieve the Logout interface countdown effect

Source: Internet
Author: User

when Wamp (windows+apache+mysql+php) makes a Web site, it is often necessary to use the session record form to log in the user name and password variables, and to clear the session when logout. Usually I want to implement the logout is to prompt the user through alert and then the header jump, but the following code is implemented through JavaScript time countdown and jump to the effect of the homepage, mainly to see the school's BT website and so on is the effect.
PS: Reference C # System Application cookie\session basic knowledge and PHP read cookie\session
The code is as follows:
<?phpsession_start (); Session_destroy (); Empty to create all Sessionsetcookie (Session_name (), ', Time ()-1); $_session = Array ();? >the effect of the implementation is as follows:

finally hope that the article is helpful to everyone, but also try different styles, write short articles.
(by:eastmount 2015-2-21 http://blog.csdn.net/eastmount/)

Php+html to achieve the Logout interface countdown effect

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: info-contact@alibabacloud.com 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.