Re: Custom SessionHandler class with database, write issue
| From: | Stuart Dallas | Date: | Sun, 02 Nov 2014 22:10:28 +0000 |
| Subject: | Re: Custom SessionHandler class with database, write issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324024@lists.php.net to get a copy of this message | ||
On Wednesday, Oct 29, 2014 at 10:53 pm, Derek Ellison <derek.isname@gmail.com>, wrote:
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.
It’s a bit old but you may find this useful: http://3ft9.com/mysql-sessions/
-Stuart
—
Stuart Dallas
3ft9 Ltd
http://3ft9.com/