471,599 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Smart Client, Browser and Coookies

sd
Hello
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 website.
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 direction.

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.

Thanks
sd
Nov 17 '05 #1
0 1088

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sd | last post: by
reply views Thread by danths | 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
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | 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.