Passing values from ASP.NET to PHP -



Passing values from ASP.NET to PHP -

is there anyway pass values asp.net php using session or other? tried in below way didn't work me. either right below code or suggest me way pass values asp.net php without using url query string.

asp.net code.

protected void button1_click(object sender, eventargs e) { httpcookie cookie = new httpcookie("myvalue1"); cookie.value = "joe@example.com"; response.redirect("default.php"); }

php code.

<?php session_start(); $_cookie['myvalue1']; $cookies = getcookies(); $sessionid = $cookies['myvalue1']; ?>

there few ways this, none particularly sexy.

post info asp.net using httpwebrequest php page, done server side. a cookie encrypted value. if php , .net both run on same server, save file system. a database server. asp.net supports multiple forms of persisting session state. state server , sql beingness 2 of them. i'm sure php configured read them. you'd have research how that. article sharing session between asp.net , classic asp. conceptually same, , has asp.net configuration part in article. http://msdn.microsoft.com/en-us/library/aa479313.aspx

edit: roll own state server. create webservice stores info asp.net , php retrieves when needed.

php asp.net

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -