Im currently coding a basic login using HttpWebRequests in Visual Basic 2010. After following some tutorials, I somehow racked this code up: http://pastebin.com/azZuyvDM
Pretty much I have phpBB being hosted on my computer (using WAMP) and im using simple web requests to get this going. Now a common thing that Ive seen being asked, but not answered much (or maybe thats just me) is that sessions/cookies dont carry from page to page.
In this code, Button1 will do the actual logging in with the username and password. I put a WebBrowser just to see what happens so when I click Button2, it shows me the page of whatever happened during that HttpWebRequest.
What Ive noticed is that it does successfully log in but when it redirects back to the homepage, im no longer signed in. I need to be able to fix that.
If it helps, here is my actual project: http://bit.ly/10zFuHs
Hope I can get this annoying problem fixed. Thanks!