473,385 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Maintain Web Session and Cookies

I thought this would be simple:

In my VB.NET application, make and instance of a web control, post a
username/password to a website, keep "browsing" the website with the
control, extracting information about the web pages, and the Session and
cookies will be alive for as long as I'm posting back to the web site.

Boy was I wrong!

The website (not mine btw) uses a combination of session variables and
cookies to validate the user.

I've tried with an HttpRequest and HttpResponse objects to no avail. I
can't get them to behave like a normal browser, maintaining the session.
The best I could do was to create an instance of axWebBrowser and
"manually" browse the web pages. I do this using the DOM, filling the
textboxes (calling them by name) and doing TheSubmitButton.Click()

Using the axWebBrowser, how do I download a file stored on the web?
Does anyone have a better solution? Throw me a bone here! Any comment
will be appreciated.
Nov 21 '05 #1
1 1776
This doesn't use the axWebbrowser, but it accomplishes the same thing.

http://www.gotdotnet.com/Community/U...2-95eba7e44e9e

Jim Hubbard

"Manuel" <No****@NoServer.com> wrote in message
news:E5********************@giganews.com...
I thought this would be simple:

In my VB.NET application, make and instance of a web control, post a
username/password to a website, keep "browsing" the website with the
control, extracting information about the web pages, and the Session and
cookies will be alive for as long as I'm posting back to the web site.

Boy was I wrong!

The website (not mine btw) uses a combination of session variables and
cookies to validate the user.

I've tried with an HttpRequest and HttpResponse objects to no avail. I
can't get them to behave like a normal browser, maintaining the session.
The best I could do was to create an instance of axWebBrowser and
"manually" browse the web pages. I do this using the DOM, filling the
textboxes (calling them by name) and doing TheSubmitButton.Click()

Using the axWebBrowser, how do I download a file stored on the web?
Does anyone have a better solution? Throw me a bone here! Any comment will
be appreciated.

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: | last post by:
This is a very open ended question. I have an app with a page that uses link buttons to change the display. On the prior page you have a list of objects. You click one of those objects to see it's...
3
by: PM | last post by:
I'm trying to make a kind of search history containing the 3 last searched words. So I'm using 3 Session Variables: Word1 / Word2 / Word3. In order to get this history working, I need to put the...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
4
by: Oscar Onorato | last post by:
Hello colleagues: Somebody know that good alternatives I have, in addition to the cookies, to maintain the session state? Where an example of it can be seen? Thanks
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
0
by: gagoo | last post by:
Aslamoalikum I have problem that using php i create session in wap application it creates session. it send sessionid to all other url in protected pages but not maitain session.when i accessed...
13
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need...
2
by: StanB | last post by:
I came across this weird problem: 1. Session state stops working after the app is deployed to another server because IE does not accept cookies. 2. It works if cookieless="true" in the...
2
by: anjaligoel | last post by:
Good morning for everyone please anyone tell me tht how can i maintain the session through javascript i found that we can use cookies in javascript but can we maintain session in it. currently...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.