<?php /* set the cache limiter to 'private' */session_cache_limiter('private'); $cache_limiter = session_cache_limiter();/* set the cache expire to 30 minutes */ session_cache_expire(30); $cache_expire = session_cache_expire();/* start the session */session_start();echo "The cache limiter is now set to $cache_limiter<br />"; echo "The cached session pages expire after $cache_expire minutes"; ?>
其他的都有服务器自动完成。
/* set the cache limiter to 'private' */session_cache_limiter('private');
$cache_limiter = session_cache_limiter();/* set the cache expire to 30 minutes */
session_cache_expire(30);
$cache_expire = session_cache_expire();/* start the session */session_start();echo "The cache limiter is now set to $cache_limiter<br />";
echo "The cached session pages expire after $cache_expire minutes";
?>
而且可以设置Session过期的时间
具体参看
http://www.w3school.com.cn/php/php_sessions.asp
joomla是完全的开源的呀。正如楼上几位所说的那样,也是用session来实现的