ASP.NET/PHP: How to pass session variable from PHP to ASP.NET?

My guess is no. You will have to maintain session in DB and when you navigate to the ASP. Net site, it should access the same db to retrieve the session.

Yogendra: is there a way to get the existing URL of the ASP. NET site so I could just parse it to get the 'id=1' part? – eibhrum May 5 '10 at 14:40 1 I think since you are passing the value in query string, you should be good.

– Yogendra May 5 '10 at 15:27 1 Why is this downvoted? I guess using DB is the only option to pass session variables between ASP and ASP. Net and php and asp.net.

If query string is used, the value can be retrieved using the headers or the forms. I am not sure which one. – Yogendra May 5 '10 at 15:33.

Quick and dirty solution: Create an . ASPX page which accepts parameters via the QueryString. Have your .

ASPX page do some validation to check that it is your PHP script that is accessing it (i.e. Not Joe Public on the internet). Then have it set each of the QueryString parameters as session variables in the normal way.

When you want your PHP page to be able to set a value in the ASP. NET session, fire off a simple HTTP request to your special ASPX 'bridging page'. It will convert the querystring variables you've passed to it via the QueryString into Session values.

Providing the user maintains the current browser window, when navigating from your PHP script to your ASP. NET site, you should fine that does just the trick...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions