|
 |
|
มี Script ที่จตรวจสอบ อายุของ Cookie ใหมครับ มี Script ที่จตรวจสอบ อายุของ Cookie ใหมครับ |
|
 |
|
|
 |
 |
|
ผมทำแบบนี้อะ 555+
Code (PHP)
<?php
setcookie('test', 'test', time() + 86400 );
setcookie('testexpire', time() + 86400,time() + 86400 );
header('Content-Type: text/html; charset=utf-8');
echo 'คุกกี้ test จะหมดอายุวันที่ ' . date('j/n/Y H:i:s', $_COOKIE['testexpire']);
?>
อ้างอิง
http://php.deeserver.net/phpbb/viewtopic.php?f=2&t=428
|
 |
 |
 |
 |
Date :
2009-07-21 17:35:34 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ สำหรับความรู้ใหม่
|
 |
 |
 |
 |
Date :
2009-07-21 19:01:21 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องใช้ javascript
|
 |
 |
 |
 |
Date :
2009-07-21 19:22:20 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
Load balance : Server 05
|