dominicklee / PHP-MySQL-Sessions

Easily store PHP session data in a MySQL database
GNU Affero General Public License v3.0
84 stars 42 forks source link

Warning: session_start(): Failed to read session data: user (path: /var/cpanel/php/sessions/ea-php73) #6

Open umashankarpandey opened 4 years ago

umashankarpandey commented 4 years ago

This Code Not working in php 7.3

i am getting error Warning: session_start(): Failed to read session data: user (path: /var/cpanel/php/sessions/ea-php73)

JonasTheGamer commented 4 years ago

Same here. Would be lovely to receive some kind of feedback from @dominicklee . Php 7.2.

JonasTheGamer commented 4 years ago

@umashankarpandey You gotta change the code from mysql.sessions.php to this: https://github.com/dominicklee/PHP-MySQL-Sessions/blob/5fc1be65f375325a30ad452383270802c6c91ac3/mysql.sessions.php

Then it works. fixed it for me. ;)

jonasbirkelof commented 3 years ago

@umashankarpandey You gotta change the code from mysql.sessions.php to this: https://github.com/dominicklee/PHP-MySQL-Sessions/blob/5fc1be65f375325a30ad452383270802c6c91ac3/mysql.sessions.php

Then it works. fixed it for me. ;)

Can confirm that this fix works! Thank you!

grosschmid commented 3 years ago

Thanks @JonasTheGamer, works for me too, hope it gets merged sometime 🙂

mesahach commented 1 year ago

How do i make use of this? https://github.com/dominicklee/PHP-MySQL-Sessions/blob/5fc1be65f375325a30ad452383270802c6c91ac3/mysql.sessions.php @umashankarpandey

arunkjojo commented 7 months ago

PHP Warning: session_start(): open(/var/cpanel/php/sessions/ea-php83 in php v8.3