473,320 Members | 1,845 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,320 software developers and data experts.

Keep track of Session from program

Q.Z
We have a client who has a web site which collect consumer
information from Internet for example mortgage
application. And my company likes to sell our consumer(who
filled the application through our site) information to
them. One of the option is to simulate the consumer by
posting data to our client's web site. I can post the data
to the site but my question is how do I simulate session
cookies?

Thanks
Qin Zhou
Nov 18 '05 #1
2 1313
cookies are just a header records in the post and response. when you hit
your site, it will respond with a cookie header, just use this on the next
post.

-- bruce (sqlwork.com)

"Q.Z" <zh**@netquote.com> wrote in message
news:05****************************@phx.gbl...
We have a client who has a web site which collect consumer
information from Internet for example mortgage
application. And my company likes to sell our consumer(who
filled the application through our site) information to
them. One of the option is to simulate the consumer by
posting data to our client's web site. I can post the data
to the site but my question is how do I simulate session
cookies?

Thanks
Qin Zhou

Nov 18 '05 #2
Hi Q.Z,
Thank you for using Microsoft Newsgroup Service. Based on your description,
you've got a client application(ASP.NET web application) which gather
customer's info via web. Also, you've another application that will post
some customers' info via web client component(simulate a user serve the web
application). However, you are wanting to know how to simulate the cookie
to maintain the session with the web application server? Please correct me
if my understanding is note quite accurate.

As for the problem, generally the web application has serveral means to
maintain session between separately requests for the client.:
using cookie, url appending...
If the cookie is allowed in client, as bruce barker said, the web
application will stored cookie info in the http request and response's
header area. The server just use retrieve the cookie info from the header
datas and then retrieve the correct session for the certain client. As for
your situation, you are using the web client component to simulate a
client. Since you can get the whole http request and response message, you
should maintain those datas in header area when getting the response from
the server and then put them in the request next time you want to post to
the server. Also, you can do a simple test first to try out the suggestion
if you are not sure at them.

If you have any questions on the preceding description, please feel free to
let me know.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

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

Similar topics

1
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and keep track of every single user that surfs our websites by the use of sessions. The problem...
3
by: RR | last post by:
We have cards that are numbered consecutively. These cards are given out to different people in different sized batches. One group might get 5, the next group might get 20. What is a good...
5
by: tshad | last post by:
If I am using FormsAuthentication, is there a way to check who is logged in? I want to be able to check at any particular time, not just how many people are logged in, but who they are. One...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
1
by: Linda Chen | last post by:
Hello, I made a webservice, the user is asked to login to the server before making other calls. I have problem to keep the login state. Inside my web service I have a private boolean called...
7
by: andrea | last post by:
Which is the best way to track the number of the user currently logged into a web site? I've some idea on mind, but I want to compare with you. One could be to increment a session variable on...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
2
by: Don Hobson | last post by:
I am building a website and I want to allow users to do certain things without logging in. I would like to allow them to keep track of certain items, by adding them to a list. Like if they are...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.