Communication between asp website and on vb.net

0

I have a website created in asp and I have been asked to create a new site, which over time will replace the current one, with a vb.net language. While the two sites coexist I need to pass data between the two sites such as delo login values. The login page is written in asp. From what I have been able to read, I can communicate with a querystring but I think it is too insecure. I have been trying to create a cookie on the asp site and then try to read it on the vb.net site and I can not read it and I do not know where the error is.

On the asp site I create the cookie like this:

Response.Cookies("nombre") = "Nombre"
Response.Cookies("contrasena") = "Contrasena"

On the site vb.net I try to read it like this:

Dim nombre= Request.Cookies("nombre").Value 
nombre.text=nombre

Any idea why the cookie reading does not work or some other way to make the communication?

    
asked by APJ 10.10.2017 в 18:48
source

2 answers

0

At the end after several tests I chose to create a queryString by sending the data but encrypting it using a function that I created. It is not the best solution but it is the only one that I have managed to work for the communication between the two projects in different languages.

    
answered by 25.10.2017 / 08:52
source
0

Yes, yes. Absolutely unsafe You must use the variable $Session .

the page that it sends must have an instruction like:

Session["mi_dato"] = variable_enviada;

and the page you receive must have an instruction such as:

variable_que_recibe = (string)(Session["mi_dato"]);

references:

answered by 12.10.2017 в 21:29