Implement an Encyrpted Session Management System in PHP and MySQL

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

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.

Linux MySQL PHP Ubuntu

Project ID: #16268939

About the project

12 proposals Remote project Active 6 years ago

Awarded to:

vw8092236vw

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

$100 USD in 3 days
(57 Reviews)
5.2
AndyPer

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)
3.9

12 freelancers are bidding on average $159 for this job

sr33raj

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

$50 USD in 0 days
(326 Reviews)
6.7
onkarkulkarni8

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
(76 Reviews)
6.1
aniruddh2511

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
(53 Reviews)
4.6
AuspCluster

A proposal has not yet been provided

$30 USD in 1 day
(7 Reviews)
2.2
minilabbd

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)
0.0