PHPackages                             acidjazz/summon - 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. acidjazz/summon

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

acidjazz/summon
===============

Simply and securely handle your user sessions

v1.4.3(9y ago)13401MITPHPPHP &gt;=5.6

Since Apr 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/acidjazz/summon)[ Packagist](https://packagist.org/packages/acidjazz/summon)[ Docs](https://github.com/acidjazz/summon)[ RSS](/packages/acidjazz-summon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (9)Used By (0)

Summon
======

[](#summon)

Simply and securely handle your user sessions

[![Latest Stable Version](https://camo.githubusercontent.com/ed5fa79a050371448f0e0f68293a628b03bc96565f7e3281c5d9717f9076d286/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f73756d6d6f6e2f762f737461626c652e737667)](https://packagist.org/packages/acidjazz/summon)[![Total Downloads](https://camo.githubusercontent.com/fad2e5cdb0eb97e29d4866c59482b95ae7fafbaaf10dcb9069124b4315555fe0/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f73756d6d6f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/acidjazz/summon)[![Latest Unstable Version](https://camo.githubusercontent.com/d1f7f4535bdcc647b759380bcc9f9db2daf0dbc58e450a49b627b7999cbd4ad9/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f73756d6d6f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/acidjazz/summon)[![License](https://camo.githubusercontent.com/4b0f9b0c8670ac09fc074bcd30cdcd42517ef318a2ad4b7e8f937bd3b2599084/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f73756d6d6f6e2f6c6963656e73652e737667)](https://packagist.org/packages/acidjazz/summon)[![Gitter](https://camo.githubusercontent.com/2dd4d0f228a76b3dd73355d3fb9101cd32fb849421b528669a9a7bbec7d5a25a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4749545445522d6a6f696e253230636861742d677265656e2e737667)](https://gitter.im/acidjazz/summon?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### what is this

[](#what-is-this)

this is just a simple secure way to set cookies and revive expired sessions for as long as you want. it also allows you to view and control all logged in sessions of a user and where they are coming from.

### how it works

[](#how-it-works)

- sets a cookie of an encoded string of some data when the user logs in.
- stores stuff in the user model for better verification
- upon our normal session expiring, allows you to re-login the user

### features

[](#features)

- multiple browser/client support
    - monitor and control mutiple sessions
- multiple level verification
    - verify cookie expiration
    - verify browser agent (optional)
    - store/verify our hash at the DB level
- non-expensive DB lookup
    - store an indexable identifier to avoid an expensive user lookup

### examples

[](#examples)

Log a user in after, assuming $user is some sort of user model :

```
