471,309 Members | 1,066 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

WebBrowser login fails--sort of--on 1st attempt !

I am using a WebBrowser control, and I login using this code:

byte[] postArgs = System.Text.Encoding.ASCII.GetBytes ( LOGIN_PARAMETERS );

mainWebBrowser.Navigate ( LOGIN_URI, null, postArgs, "" );

mainControl.SelectTab ( browserTab );

mainControl.Focus ();

It appears to login successfully, but any link I click on in the logged in
page generates "Your validation has expired." and a demand to login.

Now, this only happens the first time I try to login. All subsequent
attempts work as expected.

OTH, if manually go to the browser tab, access the main page of that site
first, then login as above, all works perfectly from there.

Could it have to do with URL rewriting and cookies?

Thx, Jess
Jan 22 '06 #1
0 930

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Noah Coad [MVP .NET/C#] | last post: by
reply views Thread by gene kelley | last post: by
2 posts views Thread by M R | last post: by
1 post views Thread by =?Utf-8?B?Sm9obiBCdW5keQ==?= | 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.