downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

XForms 다루기> <쿠키
[edit] Last updated: Sat, 07 Jan 2012

view this page in

세션

PHP의 세션 지원은 지속적으로 이루어지는 접근에 대해 특정한 데이터를 보존하는 방법입니다. 이는 더욱 개별화된 어플리케이션을 작성할 수 있게 하고, 웹 사이트의 인상을 깊게 해 줍니다. 모든 정보는 세션 레퍼런스 섹션에 있습니다.



add a note add a note User Contributed Notes 세션
idandaniels at gmail dot com 05-Mar-2012 09:00
How to start a session and track it by Pageviews, in this example, if there arent any pageviews, we will get 1.

<?php
session_start
();

if(isset(
$_SESSION['views']))
{
$_SESSION['views']=$_SESSION['views']+1;
}
else
{
$_SESSION['views']=1;
echo
"Views=". $_SESSION['views'];
}
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites