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

Client browser sending wrong ASP.NETSessionid in a cookie

Hi

I have a big problem with some browser setting wrong ASP.NETSessionid in
a cookie, and the result is that asp.net 1.1 always assigns new session to
the client. I checked what is going on and I noticed that the broswers set
the sessionid inside quotation marks and I guess that ASP.NET 1.1 can't parse
this and just assigns new session to the client. So my question is can I
somehow intercept the request and fix this session id by my self or is there
some other way to go around this problem!

tnx
Oct 17 '06 #1
2 1681
Yes, you can intercept calls with an HTTP Handler, and do whatever you want
with the raw request, including cookies. I am not sure how easy it is to
dink with the session cookie, but you can reverse engineer some of MS's
stufff to see how to pull from the encrypted cookie, as you will have a raw
stream. I would consider checking the machine keys first (regen on a site
that creates keys?), as that is a possible point of failure.

I am not sure what causes the issue. Where are you setting the cookie?
Traditional ASP app? ASP.NET 2.0? JavaScript?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Niko" <gr********@gmail.comwrote in message
news:d0**************************@news.microsoft.c om...
Hi

I have a big problem with some browser setting wrong ASP.NETSessionid in a
cookie, and the result is that asp.net 1.1 always assigns new session to
the client. I checked what is going on and I noticed that the broswers set
the sessionid inside quotation marks and I guess that ASP.NET 1.1 can't
parse this and just assigns new session to the client. So my question is
can I somehow intercept the request and fix this session id by my self or
is there some other way to go around this problem!

tnx


Oct 17 '06 #2
Hello Cowboy (Gregory A. Beamer),

I didn’t know that, I thought that HttpHandlers are not low level enough
to do that. I could write a simple ISAPI filter and do that, but they don’t
like the idea.

Well I’ll try to alter the cookie with HttpHandler

Yes, you can intercept calls with an HTTP Handler, and do whatever you
want with the raw request, including cookies. I am not sure how easy
it is to dink with the session cookie, but you can reverse engineer
some of MS's stufff to see how to pull from the encrypted cookie, as
you will have a raw stream. I would consider checking the machine keys
first (regen on a site that creates keys?), as that is a possible
point of failure.

I am not sure what causes the issue. Where are you setting the cookie?
Traditional ASP app? ASP.NET 2.0? JavaScript?

*************************************************
Think outside of the box!
*************************************************
"Niko" <gr********@gmail.comwrote in message
news:d0**************************@news.microsoft.c om...
>Hi

I have a big problem with some browser setting wrong ASP.NETSessionid
in a cookie, and the result is that asp.net 1.1 always assigns new
session to the client. I checked what is going on and I noticed that
the broswers set the sessionid inside quotation marks and I guess
that ASP.NET 1.1 can't parse this and just assigns new session to the
client. So my question is can I somehow intercept the request and fix
this session id by my self or is there some other way to go around
this problem!

tnx

Oct 17 '06 #3

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

Similar topics

22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
33
by: Todd | last post by:
OK, I created a .htm page within a new Web solution: -------------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head>...
3
by: Greg Liles | last post by:
I've logged into an ASP.Net server through my browser. My browser runs an activex control. The activex control starts an activex EXE that needs to communicate to the server. The problem is when...
3
by: Ben | last post by:
Hi, I'm sending out a session cookie. That is a cookie that has no expiration date. When I surf through the site, no problems, but if I close the browser and open it back up, the cookie is still...
4
by: Goh | last post by:
Hi, I would like to know how can we implement a web page that intelligent enough to unique identify that pc have been visit before without any cookies and login user require. I have try...
0
by: dawson | last post by:
I started off by trying to use the HttpCapabilitiesBase.Cookies Property (Note: This property is new in the .NET Framework version 2.0) however it kept on returning true even when I disabled...
2
by: arijitdas | last post by:
Hi, We have an ASP.NET 2.0 web application where we want to share few user specific data between server and client side code using cookie. We are seeing a very strange behavior that it does not...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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: 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
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...

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.