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:

[login to view URL]

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 [login to view URL]):

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

Stack trace:

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

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

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

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

#4 {main} thrown in /var/www/html/library/[login to view URL] 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/[login to view URL] 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/[login to view URL] on line 52

Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /var/www/html/library/[login to view URL] 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 [login to view URL]

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

Evner: Linux, MySQL, PHP, Ubuntu

Se mere: 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

Om arbejdsgiveren:
( 4 bedømmelser ) Fairfield, United States

Projekt ID: #16268939

Tildelt til:


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

$100 USD in 3 dage
(57 bedømmelser)

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 Flere

$100 USD in 5 dage
(32 bedømmelser)

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 dage
(5 bedømmelser)

14 freelancere byder i gennemsnit $153 på dette job

$222 USD in 3 dage
(275 bedømmelser)

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

$50 USD in 0 dage
(257 bedømmelser)
$277 USD in 5 dage
(47 bedømmelser)

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 dage
(72 bedømmelser)
$155 USD in 3 dage
(55 bedømmelser)
$277 USD in 7 dage
(11 bedømmelser)

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, Flere

$50 USD in 3 dage
(43 bedømmelser)
$250 USD in 3 dage
(21 bedømmelser)

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 dage
(5 bedømmelser)

A proposal has not yet been provided

$30 USD på 1 dag
(6 bedømmelser)

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 dage
(0 bedømmelser)