內容簡介
這個外掛添加了 PHP session 支援功能,可以將數據從一個請求傳遞到下一個請求中。外掛提供函數來設置和獲取 PHP session 中的項目。
開發人員的功能:
您可以保存一個 HTTP 請求中的數據來供下一個請求使用。
simpleSessionSet($key, $value)函數用於設置 session 值。
simpleSessionGet($key, $default) 函數可獲取一個帶有預設值的 session 值,如果鍵未被找到的話。
在 init 事件啟動 session,在登入和登出事件中銷毀 session。
其他功能:
Simple Session Support 沒有其他支援的功能。代碼簡單、小巧且有詳細的文件說明,您可以將其用作自己插件或主題的起點。
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds PHP session support. Data can be passed from one request to the next.
Functions are provided to get and set items in the PHP session.
Features for Developers
You can save data from one HTTP request to another.
the simpleSessionSet($key, $value) function sets a session value
the simpleSessionGet($key, $default) function gets a session value with a default value if the key is not found
the session is started in the init action and destroyed in the login and logout actions
Additional Features
There are no additional features supported by Simple Session Suppoprt. The code is simple, small and well documented,
so you can use it as a starting point for your own plugins or themes.
