Okay so I've run into a bit of situation, I currently have the need to be able to transfer an active login between a program I made with visual studio which uses a web browser control to Internet Explorer so that the user can transition seamlessly between the two phases of my program's automation. Any suggestions at all on how this might be done would be greatly appreciated.
Asked
Active
Viewed 190 times
2
-
Do you have code-level access to the web application itself? – Adrian Wragg May 26 '15 at 11:09
-
I was just using the default webbrowser control in visual studio. – Naate May 26 '15 at 11:11
-
Is it your web application though, and therefore are you able to implement something on the website itself? Or are you restricted to only being able to change the desktop application? – Adrian Wragg May 26 '15 at 11:15
-
the web application itself is not my own, im just writing a program to automate some features and it requires me to use the program and IE both with the same user. – Naate May 26 '15 at 11:17
-
Can I recommend adding that to the question itself? Comments may not be preserved, and two of the three answers give a solution that simply isn't possible. – Adrian Wragg May 27 '15 at 07:47
3 Answers
0
I have never needed something like this but I think I would save PC name / IP / MAC Address to the database and hold the active/passive information accordingly.
Emre Yıldırım
- 19
- 4
0
-
I'm going to look into those links and try it right way and I'll let you know how it works out, thanks. – Naate May 26 '15 at 11:09
0
I would use session based key in Url with short expiration time. Something like:
http://myhost/myservice?myarg=myvalue&sessionId=<sessionId>&sessionKey=<randomSessionKey>
Be sure to generate random randomSessionKey for each session though.
It will even work between different browsers.
nomail
- 635
- 6
- 21