HTTP_Session - session replication
| From: | LFaR | Date: | Tue, 12 Sep 2006 10:30:16 +0000 |
| Subject: | HTTP_Session - session replication | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25106@lists.php.net to get a copy of this message | ||
Hi,
Firstly, thanks to the authors of HTTP_Session. My testing with it has been
flawless.
I have been using the MDB2 container and I can watch my session data being
created and destroyed in the sessiondata table.
Before session data is destroyed, I would like to replicate it in another
table so that it can be recovered at a later time for some post-processing.
Is there a preferred way to do this? Maybe I need to extend HTTP_Session
with a custom procedure?
I would really appreciate hearing how others have approached this, assuming
I'm not the only one with this need.
In case some additional context helps...
I have a session that contains customer order data. I am connecting to
PayPal to process the payment and it later notifies me via its Instant
Payment Notification (IPN). This is asynchronous. When I get notified, I
would like to restore the session data to perform post-processing.
However, I can't rely on the session record that has already been saved,
since a user may prefer to continue shopping, in which case the previous
session must be destroyed. Hence, I need to replicate it before destroying
the session.
Thoughts?
LFaR.