471,084 Members | 962 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

Smart Client and Browser

I have smart client app which needs to access a "forms authentication"
protected website for certain functions. Thre credentials used to
logoin to
smart client arae the same as teh credentials used to logon to website.
Once the
user logs on to the client I do not want them to logon again into the
I guess I have two options
a. Do a screen scraping capturing the view state of the login page and
establish the
session by storing the cookies.
b. Create a webservice to logon and store the cookies and then call the
urls from a webbrowser.

Option "b" was better and so I wouldl want to proceed in this

Since I would like to render html in a browser instantiated from the
smart client
I cannot use standard managed classes like webclient, webresponse etc
and need to depend
on unmanaged code using shdocvw and axwebbrowser.

Now the challenge is how do I pass cookies stored in a cookiecontainer
to the Navigate or Navigate2
methods as headers so that I can access a protected site and use the
same session.


Nov 22 '05 #1
0 989

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sd | last post: by
1 post views Thread by HM | last post: by
3 posts views Thread by jack | last post: by
3 posts views Thread by rock | last post: by
reply views Thread by Ekart Laszlo | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.