PHPackages                             itpathsolutions/role-wise-session-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. itpathsolutions/role-wise-session-manager

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

itpathsolutions/role-wise-session-manager
=========================================

Role wise Managed session

1.0.13(1y ago)031MITPHPPHP &gt;=7.0

Since Feb 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dhanikk/role-wise-session-manager)[ Packagist](https://packagist.org/packages/itpathsolutions/role-wise-session-manager)[ RSS](/packages/itpathsolutions-role-wise-session-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (14)Used By (0)

Role Wise Session Manager
=========================

[](#role-wise-session-manager)

Overview
--------

[](#overview)

This package allows you to manage session lifetimes based on user roles in Laravel.

Installation
------------

[](#installation)

You can install the package using Composer:

```
composer require itpathsolutions/role-wise-session-manager
```

Publishing the Provider
-----------------------

[](#publishing-the-provider)

After installation, publish the provider using the following command:

```
php artisan vendor:publish --provider="Itpathsolutions\Sessionmanager\SessionManagerServiceProvider"
```

Middleware Configuration
------------------------

[](#middleware-configuration)

You need to add the middleware inside `app/Http/Kernel.php` in the middleware groups:

```
protected $middlewareGroups = [
    'web' => [
        // Your other middleware
        \Itpathsolutions\Sessionmanager\Http\Middleware\RoleBasedSessionMiddleware::class,
    ],

    'api' => [
        //
    ],
];
```

Managing Session Lifetime
-------------------------

[](#managing-session-lifetime)

You can check and configure session lifetime based on roles using the following URL:

```
http://127.0.0.1:8000/session-manager-info

```

The default session lifetime is set to **30 minutes per role**, but you can modify it as needed, and changes will take effect in your system.

It will work when you have role like "%Admin%"
----------------------------------------------

[](#it-will-work-when-you-have-role-like-admin)

---

Enjoy managing session lifetimes efficiently with Role Wise Session Manager!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance43

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

13

Last Release

449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74d7fbd5e506bbbd7ab765e785d26a663744a74347fe6b0c855c3f55577ed5d4?d=identicon)[dhanikk\_itpath](/maintainers/dhanikk_itpath)

![](https://www.gravatar.com/avatar/145e56a2735252b929a6efd7b52e736eaf129444e0fafb405d807fa43fd9e345?d=identicon)[Archana-1993](/maintainers/Archana-1993)

---

Top Contributors

[![dev-archana-soni](https://avatars.githubusercontent.com/u/94445886?v=4)](https://github.com/dev-archana-soni "dev-archana-soni (20 commits)")[![dhanikk](https://avatars.githubusercontent.com/u/112705004?v=4)](https://github.com/dhanikk "dhanikk (1 commits)")

### Embed Badge

![Health badge](/badges/itpathsolutions-role-wise-session-manager/health.svg)

```
[![Health](https://phpackages.com/badges/itpathsolutions-role-wise-session-manager/health.svg)](https://phpackages.com/packages/itpathsolutions-role-wise-session-manager)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[althinect/filament-spatie-roles-permissions

340954.7k9](/packages/althinect-filament-spatie-roles-permissions)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[pschocke/laravel-telegram-login-widget

Easily integrate Telegrams login widget into your Laravel application to send Telegram messages

1610.4k](/packages/pschocke-laravel-telegram-login-widget)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
