ddl DDL-Turkey :: PHP Scripts, Clone Scripts and Templates for Webmasters

 
show me
popularity
news
 
added
author
mirror
Categories
TOP-Partner
PHP Scripts

PHP Database Session Class - CodeCanyon

Date: 24-08-2010, 17:27  |  Author : showstar  |  Comments: (3)  |  Views: 2391  |  Print   
  
PHP Database Session Class - CodeCanyon


Create user sessions with this easy to use class. Each session is stored in a database and is locked to the current browser and ip address. Create Sessions, Destroy Sessions, Create Session Variables, Access Session Variables, Delete Session Variables, View session data array.

 
Example

// Include the class
require('session.php');

// setup database array
$config = array(
    'host' => 'localhost',
    'user' => 'root',
    'pass' => 'root',
    'db' => 'session'
    );

// create a new class instance
$sess = new Session($config);

// create a new session
$sess->create();

// set a session value
$sess->set('key', 'value');

// and another
$sess->set('email', 'some@email.com');

// pull a session value
$email = $sess->get('email');

// delete a session value
$sess->drop('email');

// pull a raw session array
$session_array = $sess->raw();

// check if a session is active
$acheck1 = $sess->active();

// Save session info to a variable
$session_info = $sess->raw();

// destroy the session
$sess->destroy();


Download PHP Database Session Class - CodeCanyon
 
I like thisI dislike this
15 people say it works.

Categories: PHP Scripts

Tags: php, session, class, database, mysql, Secure, user

#1 Posted by: mdd_2007 (2 September 2010 17:55)
Group: Member
Register: 2.09.2010
ICQ: --
very goog ;-)

 
Comments: 2 | Posts: 0

#2 Posted by: barbooor (25 September 2010 02:43)
Group: Member
Register: 9.05.2010
ICQ: --
good thx



 
Comments: 50 | Posts: 0

#3 Posted by: wree (25 April 2011 11:52)
Group: Member
Register: 29.03.2011
ICQ: --
thanks a lot

 
Comments: 55 | Posts: 0

Information! Members of Guest cannot leave comments.

Home | Wordpress | Joomla | vBulletin | Datalife Engine | Modules | Cms Scripts | Board Scripts | Shop Scripts | Multimedia | Arcade Scripts | Hosting Scripts | Chat Scripts
© 2011 by DDL-Turkey.Net. This page was last modified on 14 May 2011 at 18:56.