3 Replies - 466 Views - Last Post: 29 March 2012 - 08:29 PM Rate Topic: -----

#1 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Linking PHP web page with ASP3 classic

Posted 27 March 2012 - 08:28 AM

Dear all,
Is it possible to link a php web page into a ASP3 classic page?
Suppose there's a link on a ASP page into a PHP page, also there a link in the PHP page to the ASP page.

I was thinking about use session variable to go back and forth between the page, but I don't know how to use the variable in the PHP or ASP code. Is this a correct way? Or is there any other approach?

regards,
ethereal1m
Is This A Good Question/Topic? 0
  • +

Replies To: Linking PHP web page with ASP3 classic

#2 KingCuddles  Icon User is offline

  • D.I.C Regular

Reputation: 176
  • View blog
  • Posts: 496
  • Joined: 20-December 08

Re: Linking PHP web page with ASP3 classic

Posted 27 March 2012 - 08:32 AM

So what you are saying is you have two versions of a page, one in ASP and one in PHP, and depending on a certain $variable (perhaps in a session cookie) you want users to see one or the other?

This post has been edited by KingCuddles: 27 March 2012 - 08:35 AM

Was This Post Helpful? 0
  • +
  • -

#3 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1003
  • View blog
  • Posts: 3,562
  • Joined: 05-June 09

Re: Linking PHP web page with ASP3 classic

Posted 27 March 2012 - 08:33 AM

No, the sessions are handled and stored differently.

You could change the session handlers for both ASP and PHP to use a common database, and ensure that they serialize correctly etc but it's a big job and to be honest you'd probably be better off using cookies for cross-language compatibility. That's certainly going to be the easiest and quickest way depending on what data you want to share, or alternatively (still forgetting sessions) you could do something like a session and store a unique ID upon visiting either page, and use that ID (like a session ID) to load/create a file with data in it, and recreate that in each language.
Was This Post Helpful? 1
  • +
  • -

#4 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 214
  • Joined: 30-June 09

Re: Linking PHP web page with ASP3 classic

Posted 29 March 2012 - 08:29 PM

ok tq guys...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1