Re: Custom SessionHandler class with database, write issue

From: Date: Mon, 03 Nov 2014 02:28:26 +0000
Subject: Re: Custom SessionHandler class with database, write issue
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-324027@lists.php.net to get a copy of this message
On Sun, Nov 2, 2014 at 2:10 PM, Stuart Dallas <stuart@3ft9.com> wrote: > 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/ > Thanks for the reply Stuart. I seem to have kind of found the solution. Though it doesn't really make any sense. See my question on SO: http://stackoverflow.com/questions/26636077/custom-php-sessionhandler-class-write-issue

« previous php.general (#324027) next »