WordPress Sessions Plugin (with Database) (Miscellaneous)

WP Sessions is a unique WordPress plugin which is created for Plugin & Theme Developers. It stores session information for each user as serialized (and optionally encrypted) data in a database table for more security.

Documentation   /   Support

Best for: WordPress Theme and Plugin Developers.

Features

  • Stores session data into a Database table
  • Serialized (optionally encrypted) data
  • Highly secure and impervious to being read or altered by someone!
  • Supports Flashdata
  • Add, remove or get the session data using functions. For instance, to get ‘some_value’ from session: $session->userdata( 'some_value' );
  • Session Debugging (Display Session Data)
  • Adapted from CodeIgniter Session Class
  • Shortcodes ([session key="session_id"])
  • Well Documented

Server Requirement: PHP 5 .1.6 or newer

What is Session Data

A session is simply an array containing the following information:

  • The user’s unique Session ID (this is a statistically random string with very strong entropy, hashed with MD5 for portability, and regenerated (by default) every five minutes)
  • The user’s IP Address
  • The user’s User Agent data (the first 120 characters of the browser data string)
  • The “last activity” time stamp.
  • And custom data you defined.

Prototype:

[array]
(
     'session_id'     => fcb3954dc10e6c35f7515db18c769c90,
     'ip_address'    => '176.42.245.72', 
     'user_agent'    => 'Mozilla/5.0 (Windows NT 6.1; WOW64) ... ',
     'last_activity'   => 1352838770
)

Why you need this Plugin?

Because WordPress is a totally stateless application and does NOT use sessions to hold data. This means that if you want to use sessions in your plugin or your custom theme, you may need to enable sessions. So, Sessions Plugin permits you use PHP sessions in your WordPress projects.

Simply starting a session isn’t enough?

It is NOT good enough for both security and managing your session data. The better way of storing sensitive data is to put it in a database in an encrypted format, so it makes the data highly secure and impervious to being read or altered by someone. So, this plugin has all these features.

Support

Quick Start

For Theme Developers:

This is the easiest way to use this plugin:

  • Just activate the Session Plugin from administration panel
  • And start to use $session object anywhere in your theme
    (e.g. $session->userdata('session_id');

For Plugin Developers:

You will want to adapt the WP Sessions to your plugin. So you need to use Standalone Version which comes with package you bought. It is good start and almost everything is ready there to adapt.

Download WordPress Sessions Plugin (with Database) (Miscellaneous)

Leave a Reply

Your email address will not be published. Required fields are marked *