Pushpinder Singh wrote:

The session ID is not stored in the database, its propagated invisible via a cookie (I think so ;-) )
Is is possible to check for the existance of a PHP session ID on a Perl script ?? This ways I want to be able to send a confirmation email to to the buyer after he completes a transaction. I also want to update the buyer's record to now include the Item Number of the product he purchased.


This is important because if the Perl-PHP combo approach does not work, then I will have to go for a pure PHP based shopping cart ( so that it is fully integrable with the PHP Login Module ). Also then the question comes up, that I need to get hold of a PHP-based payment gateway.

Thanks again
-Pushpinder



On Tuesday, April 20, 2004, at 04:22 PM, John W. Holmes wrote:

From: "Pushpinder Singh" <[EMAIL PROTECTED]>

This is the situation at hand ... we have a PHP Session based Login
module. The user is required to login to get to the Shopping cart
(which is provided for by the Merchant) This shopping cart is CGI /
Perl based. So my question would be to integrate the ordering with the
PHP Login module, so that the Perl code knows the PHP session variable.
This ways I can keep track of the the user name/email/ order status etc.


So all you really need is for a way for Perl to read PHP session files? Or
are you using a database for sessions? I'm sure this has already been
written. The session ID is available in a cookie or from the URL. You just
need to find the right file, open it, unserialize it and create your
variables to see if the person is actually logged in or not. No cookie or
session id in the URL means they haven't logged in.


---John Holmes...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


You don't actually need a PHP based payment gateway, you just need a PHP cart of package that supports your particular payment gateway. Payment gateways are not scripting language specific, each just uses its own set of protocols and such. There are many PHP-based shopping crarts out there that support many payment gateways. There's also PEAR's Payment_Process package, but I don't think it's stable yet.


I wrote my own shopping cart (using a bunch of PEAR modules) in a few months which is very fully featured. Then again, it took two months of full time work. ;-)

--
paperCrane <Justin Patrin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to