Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login via webrequest

Status
Not open for further replies.

cmstogo

Programmer
Apr 29, 2010
2
SE
I want to login to our webmail solution from our website, they are both hosted by my company but the mail solution is bought so i cannot edit the "code behind" but i have control of the web.config file. The webmail solution uses forms authentication.

I found a great article about it here: but i can't get it right. I need more articles like the one i posted to get some ideas of how to do this.

When it cms to web
 
this is vague and gives no indication of what the problem is. going on the assumption that you are using the code provided in the link above
1. what does make sense?
2. what does not make sense?
3. what do you have working?
4. what is broken?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Hi, thx for your time...

I use the code from the url above and when i comes to the section:
// Send request to originalUri with the cookie
// We should be able to see originalUri contents

the request should be to default.aspx (protected) page but mine is still to login.aspx (locationHeader is login.aspx). The cookie that comes from the section above is a ASP.NET_session cookie but in my web.config file the cookie is defined to be authCookie

I don't know why the cookie and locationheader is wrong.

When it cms to web
 
2 things I would do
1. use their code and configuration. before you adapt the code to use your configurations get the code working with their configurations. this means using ASP.NET_session cookie instead of authCookie. once you get this working, then you can make changes to it.
2. step through the code to figure out what is happening and where it's happening. this will help you determine what is not working properly.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top