On Tue, Jul 7, 2009 at 9:28 AM, Alastair<[email protected]> wrote: > >> I know that, but sometimes you have no choice but to use two separate >> languages for you to build an e-store. >> >> I did program this website without knowing that I was going to use the >> system of VISA. >> >> It's kind of weird that nobody gived me a straight answer. > > What answer would you like us to give you? > > You asked "What is the best way for me to use ASP with CakePHP?" > > I said "You can't really integrate PHP and ASP other than sharing the > same database." > > That is your straight answer. > > You can't. You can share the database and that is all. If you have ASP > code for this shop, I can't see it being too difficult to rewrite that > code in PHP.
You may not *need* to integrate CakePHP (PHP) with ASP either -- you can use sub-domains (shop.whatever.com has your ASP store), and absolute paths for CSS includes to share the same look/feel. If it's a shared data structure like session/user info, you could share sessions using a map table to associate PHP (Cake) sessions with your ASP sessions, or URL query strings (probably not as safe, but your call), or POST, or REST, or Web Services, etc. Or you could simply salt hash (use the same hash algorithm/salt for both languages) the user's email in a cookie and read it from the ASP site after the user has logged in with the CakePHP site. Unleash some Google fury on "shared sessions between asp and php" and you'll find something. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
