Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Yii cookie-based WebUser component
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
CHANGELOG.md
CookieWebUser.php
LICENSE
README.md
TODO.md

README.md

CookieWebUser Yii Component

CookieWebUser is a Yii component that using cookie only store for user auth info. It doesn't use server-side store (memcache, $_SESSION etc). This component can be used in highload projects.

Requirements

Yii Framework 1.x or above.

Usage

  • Add CookieWebUser.php to protected/components.
  • Add this code to 'user' component section in protected/config/main.php:
'components' => array(
    'user' => array(
        'class' => 'CookieWebUser',
        'secretKey' => 'secret key',
        'cookieName' => 'cookie name',
        'cookieDomain' => 'cookie domain',
    ),

WARNING!!! Persistent states and flash messages not implemented yet.

License

CookieWebUser is licensed under New BSD license. That allows proprietary use, and for the software released under the license to be incorporated into proprietary products. Works based on the material may be released under a proprietary license or as closed source software. It is possible for something to be distributed with the BSD License and some other license to apply as well.

Credits

  • Initial code and ideas: Sergey Andryeyev, @andser.
Something went wrong with that request. Please try again.