Custom SessionHandler class with database, write issue
| From: | Derek Ellison | Date: | Wed, 29 Oct 2014 22:53:02 +0000 |
| Subject: | Custom SessionHandler class with database, write issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-324012@lists.php.net to get a copy of this message | ||
This is the fire time I've posted to a mailing list, hopefully I'm doing
this correctly.
I'm attempting to build my own SessionHandler class implementing the
SessionHandlerInterface, to store my sessions in a Postgresql database.
This seems to be a pretty common approach, but I'm having an issue where
the session data isn't being written to the database at all. The session
name is written just fine as is the timestamp, but only a blank serialized
string is being placed in the database.
I opened a question on StackOverflow to find an answer, but have yet to
receive a response as to why this is. Please take a look at it, as it has
all the information about my problem.
http://stackoverflow.com/questions/26636077/customer-php-sessionhandler-class-write-issue
I've been dealing with it for a few days, so hopefully someone can help me
out here.