<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>「Xoops 使用自訂 Session」的迴響</title>
	<atom:link href="https://twycf.com/?feed=rss2&#038;p=129" rel="self" type="application/rss+xml" />
	<link>https://twycf.com/?p=129</link>
	<description>工作、休閒之類的雜記</description>
	<lastBuildDate>Tue, 20 Nov 2012 12:34:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.38</generator>
	<item>
		<title>由：sheshi37c</title>
		<link>https://twycf.com/?p=129&#038;cpage=1#comment-40</link>
		<dc:creator><![CDATA[sheshi37c]]></dc:creator>
		<pubDate>Wed, 30 Aug 2006 08:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://twycf.com/wordpress/archives/129#comment-40</guid>
		<description><![CDATA[即使是$_SESSION[&#039;XOOPS_TOKEN_SESSION&#039;][&#039;uname&#039;] = $uname;
在網站登陸頁面,打印$_SESSION 是空值]]></description>
		<content:encoded><![CDATA[<p>即使是$_SESSION['XOOPS_TOKEN_SESSION']['uname'] = $uname;<br />
在網站登陸頁面,打印$_SESSION 是空值</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：shinnlu</title>
		<link>https://twycf.com/?p=129&#038;cpage=1#comment-39</link>
		<dc:creator><![CDATA[shinnlu]]></dc:creator>
		<pubDate>Wed, 30 Aug 2006 07:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://twycf.com/wordpress/archives/129#comment-39</guid>
		<description><![CDATA[我想設定的部份沒什麼問題，有問題的只是自訂 Session 的程式碼
自訂 Session 的程式碼不能直接寫入 $_SESSION[&#039;uname&#039;]，你可以試試
[coolcode linenum=&quot;off&quot;]
$_SESSION[&#039;XOOPS_TOKEN_SESSION&#039;][&#039;uname&#039;] = $uname;
[/coolcode]
我的MSN和 google Talk 都是 shinnlu@gmail.com ，但是比較常開 google talk]]></description>
		<content:encoded><![CDATA[<p>我想設定的部份沒什麼問題，有問題的只是自訂 Session 的程式碼<br />
自訂 Session 的程式碼不能直接寫入 $_SESSION['uname']，你可以試試<br />
[coolcode linenum="off"]<br />
$_SESSION['XOOPS_TOKEN_SESSION']['uname'] = $uname;<br />
[/coolcode]<br />
我的MSN和 google Talk 都是 <a href="mailto:shinnlu@gmail.com">shinnlu@gmail.com</a> ，但是比較常開 google talk</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：sheshi37c</title>
		<link>https://twycf.com/?p=129&#038;cpage=1#comment-38</link>
		<dc:creator><![CDATA[sheshi37c]]></dc:creator>
		<pubDate>Wed, 30 Aug 2006 06:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://twycf.com/wordpress/archives/129#comment-38</guid>
		<description><![CDATA[非常感謝你的回復
我已經做了&quot;偏好設定/系統/一般設定&quot;,但是自己問題依然沒有解決.
我現在在做一個網站,裡面架設XOOPS,在網站做一個登陸口,提交信息到xoops&quot;user.php&quot;頁面處理用戶登陸,然後跳轉返回到網站頁面,我起用$_SESSION[&#039;uname&#039;],進行判斷,但輸出的值卻是空值,只是什麼原因
問一下,方便留下你的MSN嗎,嘿嘿~]]></description>
		<content:encoded><![CDATA[<p>非常感謝你的回復<br />
我已經做了"偏好設定/系統/一般設定",但是自己問題依然沒有解決.<br />
我現在在做一個網站,裡面架設XOOPS,在網站做一個登陸口,提交信息到xoops"user.php"頁面處理用戶登陸,然後跳轉返回到網站頁面,我起用$_SESSION['uname'],進行判斷,但輸出的值卻是空值,只是什麼原因<br />
問一下,方便留下你的MSN嗎,嘿嘿~</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：shinnlu</title>
		<link>https://twycf.com/?p=129&#038;cpage=1#comment-37</link>
		<dc:creator><![CDATA[shinnlu]]></dc:creator>
		<pubDate>Wed, 30 Aug 2006 06:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://twycf.com/wordpress/archives/129#comment-37</guid>
		<description><![CDATA[關於 Session 的說明，請參考 &lt;a href=&quot;http://www.linuxuser.com.tw/power/list2.php?id=501&quot; rel=&quot;nofollow&quot;&gt;PHP Session 管理&lt;/a&gt;或是 &lt;a href=&quot;http://php.igt.com.tw/unit_115.htm&quot;&gt;使用 SESSION 來記錄 Web 應用程式的狀態&lt;/a&gt;
在開發網頁程式時，經常需要得知目前使用者的資訊，而http 是一種無連線狀態(Stateless Connection)的協定。
意思就是說，Server 端的變數在頁面顯示完成後，會全部消失，所以我們需要有一種不會消失的全域變數來記錄必要的資訊，
以前我們常常使用 Cookie 來記錄這些資訊，但是Cookie是儲存在 Client 端，會有支援性及安全性的問題，所以目前很多網站捨棄 Cookie 而使用 Session

明白了 Session 的用意後，自然可以知道，為什麼要使用自訂 Session 的功能，而在 Xoops 裡啟用自訂 Session 功能的方式，在上文也有說明
[coolcode linenum=&quot;off&quot;]
偏好設定/系統/一般設定
1.使用自定的session：是
2.Session 有效期：60
[/coolcode]]]></description>
		<content:encoded><![CDATA[<p>關於 Session 的說明，請參考 <a href="http://www.linuxuser.com.tw/power/list2.php?id=501" rel="nofollow">PHP Session 管理</a>或是 <a href="http://php.igt.com.tw/unit_115.htm">使用 SESSION 來記錄 Web 應用程式的狀態</a><br />
在開發網頁程式時，經常需要得知目前使用者的資訊，而http 是一種無連線狀態(Stateless Connection)的協定。<br />
意思就是說，Server 端的變數在頁面顯示完成後，會全部消失，所以我們需要有一種不會消失的全域變數來記錄必要的資訊，<br />
以前我們常常使用 Cookie 來記錄這些資訊，但是Cookie是儲存在 Client 端，會有支援性及安全性的問題，所以目前很多網站捨棄 Cookie 而使用 Session</p>
<p>明白了 Session 的用意後，自然可以知道，為什麼要使用自訂 Session 的功能，而在 Xoops 裡啟用自訂 Session 功能的方式，在上文也有說明<br />
[coolcode linenum="off"]<br />
偏好設定/系統/一般設定<br />
1.使用自定的session：是<br />
2.Session 有效期：60<br />
[/coolcode]</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：sheshi37c</title>
		<link>https://twycf.com/?p=129&#038;cpage=1#comment-36</link>
		<dc:creator><![CDATA[sheshi37c]]></dc:creator>
		<pubDate>Wed, 30 Aug 2006 05:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://twycf.com/wordpress/archives/129#comment-36</guid>
		<description><![CDATA[什麼是自訂session,在哪裡設定]]></description>
		<content:encoded><![CDATA[<p>什麼是自訂session,在哪裡設定</p>
]]></content:encoded>
	</item>
</channel>
</rss>
