neiderruiz/flarum-simple-share-session
最新稳定版本:0.0.4
Composer 安装命令:
composer require neiderruiz/flarum-simple-share-session
包简介
Simple Share Session for Flarum
README 文档
README
composer install neiderruiz/flarum-simple-share-session
enable extension on Flarum
the extension will check the session id from the cookie and send a request to the API to verify the session.
$cookies = $request->getCookieParams(); $sessionId = $cookies['sessionid'] ?? null;
add endpoint to check session on Falrum extension settings
https://domain.com/api/verify-session
Your endpoint will receive the parameter through the url for example:
https://domain.com/api/verify-session?sessionid=123456789
expected response
{
"user": {
"id": 1,
"username": "admin",
"email": "admin@domain.com",
"name": "Admin",
}
}
developent config
npm run build
refresh changes
composer update neiderruiz/flarum-simple-share-session *@dev
php flarum cache:clear php flarum assets:publish
Support
If you have any questions, need help, or want to contribute, feel free to reach out:
- Website: neiderruiz.com
- GitHub: @neiderruiz
- Twitter: @neiderruiz
- YouTube: Neider Ruiz
Support the Project
If you find this project useful, consider buying me a coffee to help me keep improving it. Your support means a lot! ☕
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-02-22