Replies: 7 comments 3 replies
-
What does not work using the existing adapter of Incubator? Any errors? BTW: I've written a custom implementation based on the Incubator example, but I'm using real models instead of using native SQL for reading from and writing to database. |
Beta Was this translation helpful? Give feedback.
-
Here is the error I get Here is the destroy method I have public function destroy($session_id = null)
{
if (!$this->isStarted()) {
return true;
}
if (is_null($session_id)) {
$session_id = $this->getId();
}
$this->_started = false;
$options = $this->getOptions();
$result = $this->connection->execute(
sprintf(
'DELETE FROM %s WHERE %s = ?',
$this->connection->escapeIdentifier($options['table']),
$this->connection->escapeIdentifier($options['column_session_id'])
),
[$session_id]
);
return $result && session_destroy();
} Source
|
Beta Was this translation helpful? Give feedback.
-
Thanks @wurst-hans Shows how long it's been since I've written any PHP. Return type declarations are new to me 😅 |
Beta Was this translation helpful? Give feedback.
-
I don't know if I can complete this without an example. Anyone know of any examples of this anywhere? Previously it called start() but AbstractAdapter does not have a start method. :/ Maybe I'm better of going back to version 3.4 |
Beta Was this translation helpful? Give feedback.
-
Yep, I'm done... going back to 3.4 or maybe another framework :( |
Beta Was this translation helpful? Give feedback.
-
Yes, Session Incubator is now separate package |
Beta Was this translation helpful? Give feedback.
-
Now all incubator package for (v4) is hosted in separate repository, here is the list: |
Beta Was this translation helpful? Give feedback.
-
Has anyone ported the database session adapter to version 4.0?
https://github.com/phalcon/incubator/blob/master/Library/Phalcon/Session/Adapter/Database.php
Beta Was this translation helpful? Give feedback.
All reactions