cookiewebuser Yii cookie-based WebUser component

  1. Requirements
  2. Usage
  3. Version
  4. Todo
  5. Resources

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.

Version

0.1 - Initial release

Todo

  • persistent states and flash messages

Resources

2 0
6 followers
490 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Auth
Developed by: andser
Created on: Mar 4, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions