neiderruiz / flarum-simple-share-session
Simple Share Session for Flarum
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: >=1.8 <1.10
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! ☕