Implement an Encyrpted Session Management System in PHP and MySQL

How to Create a Secure Session Management System in PHP and MySQL


I want a PHP Session management class that encrypts sessions and stores them in a MySQL database. Preferrably I would like to use one that is well-supported. It appears from Google search that the most commonly referenced session management system is:

[url removed, login to view]

I would like your quote to implement this session management system using the latest production version of PHP (version 7.0.25) and MySQL (version 5.7.21) running on the latest LTS version of Ubuntu (16.04).

I have a dedicated cloud server set up with such an implementation (which you can download using git but freelancer will not let me post the link so I will message it to you), and it comes up with the following error (see [url removed, login to view]):

Warning: Uncaught mysqli_sql_exception: MySQL server has gone away in /var/www/html/library/[url removed, login to view]

Stack trace:

#0 /var/www/html/library/[url removed, login to view](76): mysqli_stmt->execute()

#1 [internal function]: web_sess->read('d1dn807bknqfea2...')

#2 /var/www/html/library/[url removed, login to view](55): session_regenerate_id(true)

#3 /var/www/html/[url removed, login to view](23): web_sess->start_session('_s', false)

#4 {main} thrown in /var/www/html/library/[url removed, login to view] on line 76

Catchable fatal error: session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/sessions) in /var/www/html/library/[url removed, login to view] on line 55

Reloading this page multiple times will eventually come up with:

Warning: session_start(): Failed to decode session object. Session has been destroyed in /var/www/html/library/[url removed, login to view] on line 52

Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /var/www/html/library/[url removed, login to view] on line 55

I cannot figure out what is going on with this.

I actually have the wikihow system set up on an older server where it IS working ... well kind of: the gc (garbage collector) function does not work so I have rapidly accumulated a large number (millions) of records in the MySQL database, which I have to manually delete.

The 16.04 LTS Ubuntu instance I am using is on Rackspace and the only setup that has happened is:

apt-get update

apt-get upgrade

sudo apt-get install apache2

sudo apt-get install mysql-server

sudo apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip

sudo systemctl restart [url removed, login to view]

Then I installed the project using git into the /var/www/html/ web root directory.

Skills: Linux, MySQL, PHP, Ubuntu

See more: hospital management system php mysql, free pharmacy management system php mysql, filling management system php mysql, complete login system php mysql, php secure login script download, php secure session login, php secure session tutorial, php session security best practices, php secure login framework, php secure login script 2017, how to create a secure login for my website, download free source code hospital management system php mysql, code hospital management system php mysql, document management system php mysql, best document management system php mysql, create learning management system php mysql flash, web based college fees management system php mysql, college management system php mysql, free downloads hospital management system php mysql, cng station management system php mysql

About the Employer:
( 4 reviews ) Fairfield, United States

Project ID: #16268939

Awarded to:


I have 5 years of experience in web development and designing . Feel free to contact me ............................

$100 USD in 3 days
(42 Reviews)

Dear Sir! I am expert in core php. I have ever developed the project which is similar your project. I'm sure you will see my high skill, once you select me. I hope we'll have a long term good relationship. Please c More

$100 USD in 5 days
(13 Reviews)

Hello, I have just completed my last project, i'm free to working on your project. Yes, i can clean and fix your website i need just more details, Please contact me and we can start now. Thank you, Andy

$166 USD in 2 days
(5 Reviews)

16 freelancers are bidding on average $139 for this job

$222 USD in 3 days
(226 Reviews)

Hello i can fix the php session manager issue on your ubuntu server.

$50 USD in 0 days
(240 Reviews)
$155 USD in 3 days
(55 Reviews)

I can get this project or task for encryption and decryption done for you as per your given set of requirement. Please get in touch to discuss more and start.

$180 USD in 3 days
(49 Reviews)
$277 USD in 5 days
(26 Reviews)

Hello Sir, i have experience with this type of project. and i have also experience, -> PHP, Wordpress, Magento, Opencart, codeigniter, HTML5, CSS3, Javascript, API based Work etc... -> Server handling :- Cpanel,WHM, More

$50 USD in 3 days
(32 Reviews)
$250 USD in 3 days
(18 Reviews)
$277 USD in 7 days
(9 Reviews)

A proposal has not yet been provided

$30 USD in 1 day
(6 Reviews)

I can develop this I have an experience of 5-6years in this field Sir I did many projects kindly reply me so that I can discuss with you

$130 USD in 3 days
(2 Reviews)

Sir, i have 10 years experience for this work. You can hire me. After satisfied you give me my payment. Thanks

$155 USD in 3 days
(0 Reviews)

Hello dear, I hope this proposal find you well, I saw your job posting online, I would like to request you please have a look into my previous works. I am a full-time freelancer with over 5 years of vast experience i More

$30 USD in 3 days
(0 Reviews)

Hello, Can you please share the website URL so we can check the Calendar checkout issue. My top strategies for on page and off page optimization will really fulfill your SEO [url removed, login to view] high-qual More

$55 USD in 30 days
(0 Reviews)