Click here to Skip to main content
15,042,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m working on website.When user logs in website, whatever link he clicks or uploads file we have maintained session ids to check whether user is authenticated to do so.we use global.asax function authenticate to check if user is auhenticated
In Response.Cookies["RSID"].Value ,Request.Cookies["RSID"].Value, we maintain session ids and compare the session id in Request.Cookies["RSID"] with session id stored at server.
When user clicks any link we send sessionid (currently stored in Request.Cookies["RSID"]) to server and at server we check it whether this session id matches with session id stored in server.If match then authenticate user else user is forced out.

We have maintained logs to trace the flow of requests.
Now When user clicks any link, the request containing session ids goes to server.
In logs we are able to track which session ids request is gone to server.
But we want to trace in logs the urls along with session ids requested to server.

In our file upload functionality, when user clicks upload button, one session id request goes to server and in response it gets new session id which is then mapped to Response.Cookies["RSID"].Value ,Request.Cookies["RSID"].Value at website and in a variable a server. After this data in file is inserted in database.

From last some days when upload file button is clicked, as flow session id requesy goes to server , new session id is mapped to variables at server and website and when some records are inserted in databse again the session id request (which was gone to server on upload button click) goes to server.But now since new session id is mappd to session id variable at server, session id mismatch occurs and user is forcd out.This behaviour is occuring suddenly although no code changes where done.

This behavior is not replicated when debug through code or when website is hosted on our testing iis.
While uploading we are not clicking upload again again then too the session id request is going to server.
We came to know this through logs written in program.

From session ids we are not getting actually for what url or functionality request i going to server.
i read about event logs,logging and tracing, health monitoring but not getting actually how to get the url which is requested to server.

Can someone tell me how to get this requested url.
Updated 10-Jan-12 23:46pm
Selva K 11-Jan-12 5:39am
Be short and clear about your question...
Member 8081020 11-Jan-12 5:44am
When user clicks upload file button, when some recirds are inserted in databse some random request goes to server and due to session id mismatch user gets forced out.
How to handle this?
How to know what request is going to server inbetween file upload?
and how to prevent it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900