stefangabos / Zebra_Session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking
https://stefangabos.github.io/Zebra_Session/Zebra_Session/Zebra_Session.html
Other
172 stars 85 forks source link

Can't connect Zebra Session with PDO? #34

Closed userc479 closed 4 years ago

userc479 commented 4 years ago

Trying to connect Zebra Session with active PDO connection and just keeps saying 'Fatal error: Zebra_Session: No MySQL connection! in C:\xampp\htdocs\assets\components\zebra_session\Zebra_Session.php on line 298' - using latest PHP and PDO rather than using Zebra Database - any help please - thank you.

stefangabos commented 4 years ago

are you using the latest version?

stefangabos commented 4 years ago

have you correctly instantiated zebra_session by passing the link to the active connection?

userc479 commented 4 years ago

Of php yes unless you mean your libs?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Stefan Gabos notifications@github.com Sent: Thursday, September 17, 2020 4:02:33 PM To: stefangabos/Zebra_Session Zebra_Session@noreply.github.com Cc: userc479 celebritiesunderpressure@msn.com; Author author@noreply.github.com Subject: Re: [stefangabos/Zebra_Session] Can't connect Zebra Session with PDO? (#34)

are you using the latest version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/stefangabos/Zebra_Session/issues/34#issuecomment-694297050, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHQYCMTVKINJKOFQDEA556DSGIQITANCNFSM4RQRPX5Q.

stefangabos commented 4 years ago

i mean the latest of zebra_session

stefangabos commented 4 years ago

try using the pdo example from the examples/ folder

userc479 commented 4 years ago

As far as I know as the Pdo retrieve fields I want but it doesn’t seem to pick up the set variable. I will try latest version when I get back from shopping and let you know of the outcome

Get Outlook for iOShttps://aka.ms/o0ukef


From: Stefan Gabos notifications@github.com Sent: Thursday, September 17, 2020 4:03:40 PM To: stefangabos/Zebra_Session Zebra_Session@noreply.github.com Cc: userc479 celebritiesunderpressure@msn.com; Author author@noreply.github.com Subject: Re: [stefangabos/Zebra_Session] Can't connect Zebra Session with PDO? (#34)

have you correctly instantiated zebra_session by passing the link to the active connection?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/stefangabos/Zebra_Session/issues/34#issuecomment-694297761, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHQYCMXDCCZCRE3RYSLRAPTSGIQMZANCNFSM4RQRPX5Q.

userc479 commented 4 years ago

So sorry for bothering you - it appears latest version has got it working now - apologises for that - hope you're keeping well - thank you for keeping your projects up to date and being active and responding quickly.