all groups > dotnet sdk > december 2006 >
You're in the

dotnet sdk

group:

How to preserve session in embeded browser?


How to preserve session in embeded browser? navyliu
12/18/2006 12:00:00 AM
dotnet sdk:
When I plug my IE into my own managed forms in C#,I always lost cookies in
the new IE page(if the new IE page is generated by the javascript
"Window.open()").How to solve this problem?Can I use axWebBrowser to solve
it?

RE: How to preserve session in embeded browser? Manish Bafna
12/18/2006 2:03:01 AM
Hi,
Though i am not sure you can try following things(i found this on searching
on internet):
[1] try window.showModalDialog() instead of window.open
[2]if the data you need to send to another page is not sensitive, send it in
the query string.

example

window.open("WebForm2.aspx?username=test");

and then retrieve it from the newly opened page using code behind

string userName = Request.QueryString["username"];

if it is sensitive try to encode it and decode it.

Thanks and Regards,
Manish Bafna.
MCP and MCTS.


[quoted text, click to view]
AddThis Social Bookmark Button