neiderruiz/flarum-simple-share-session

There is no license information available for the latest version (0.0.4) of this package.

Simple Share Session for Flarum

0.0.4 2025-05-05 15:33 UTC

This package is auto-updated.

Last update: 2025-05-05 15:33:55 UTC


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:

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! ☕

Buy me a coffee