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
Linking PHP web page with ASP3 classic
Page 1 of 13 Replies - 311 Views - Last Post: 29 March 2012 - 08:29 PM
Replies To: Linking PHP web page with ASP3 classic
#2
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
#3
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.
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.
#4
Re: Linking PHP web page with ASP3 classic
Posted 29 March 2012 - 08:29 PM
ok tq guys...
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|