<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>TWPUG問答 - 如何清除SESSION資料</title>
<link>http://blog.roodo.com/rocksaying/archives/3387201.html/</link>
<description><![CDATA[Tags: php session reference

原問題見: SESSION怎麼釋放不掉。在 PHP 中使用 Session 前，請務必閱讀: PHP Manual::Session Handling Functions。


1. Session and global variable

PHP Manual::session_register: 
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered(), and session_unregister().


$_SESSION 已經是一個 superglobal variable (全系統域變數)，使用  $_SESSION['yourKey'] 的寫法就可以了。

]]>
	</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/rocksaying/archives/3387201-comment.xml" rel="self" type="application/rss+xml" />
<item>
	<title>回應：TWPUG問答 - 如何清除SESSION資料</title>
	<description><![CDATA[謝謝大大~
讓我對SESSION的釋放有更深一層的了解了~
謝謝!!]]>
	</description>
	<link>http://blog.roodo.com/rocksaying/archives/3387201.html</link>
	<guid>http://blog.roodo.com/rocksaying/archives/3387201.html#comment-10791059</guid>
	<author>esther75952@yahoo.com.tw(she96965)</author>	<category>文章回應</category>
	<pubDate>Tue, 05 Jun 2007 10:24:26 +0800</pubDate>
</item>
</channel>
</rss>