473,320 Members | 2,071 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.

About ASP session ID

Ray
Hi, all
There is a problem about ASP session ID. ASP session is implemented by storing session id in a session cookie, but I read this cookie in ISAPI Filter, get a string as following:
ASPSESSIONIDQADCQQTS = IAOFCBBCGDGMDGCNJIKPNBAN
But the real session ID is 554851848. (Real sessionID is sessionID property the ASP session object)
Problem is what is relation between them? And how to get real session ID from cookie session ID.
Can somebody help me? Thanks!
Jul 19 '05 #1
4 2803
I doubt it's easy as it could be used to fake a session (it could be just a
unrelated hash number that allows to retrieve the session including the
sessionid in a hash table).

What is your scenario as this association is done for you server side ?

Patrice

"Ray" <an*******@discussions.microsoft.com> a écrit dans le message de
news:45**********************************@microsof t.com...
Hi, all
There is a problem about ASP session ID. ASP session is implemented by storing session id in a session cookie, but I read this cookie in ISAPI
Filter, get a string as following: ASPSESSIONIDQADCQQTS = IAOFCBBCGDGMDGCNJIKPNBAN
But the real session ID is 554851848. (Real sessionID is sessionID property the ASP session object) Problem is what is relation between them? And how to get real session ID from cookie session ID. Can somebody help me? Thanks!

Jul 19 '05 #2
Ray
I want to create a ISAPI Filter, and I want to get some data from ASP session object. I can not handle ASP session object in ISAPI Filter, so I will all values in ASP session object write into a file in server, and session ID(real session ID) is Primary Key. That is to say, I will read a record from the file with session ID
If you have a better way to do this, please tell me
Thanks
Jul 19 '05 #3
I'm far from being an ISAPI expert. You may want to try a group such as
microsoft.public.platformsdk.internet.server.isapi-dev instead...

I don't even see how you could access a particular session by computing the
ID. Basically from what I've seen from other APIs I would expect to have
something in the API that would allows to access the whole context of the
request.

If it's not possible (could be as I believe ASP is itself an ISAPI
extension), you could use some other means such as using a cookie ,
rewriting the url (if you can do this with isapi) or using a file.

You have some kind of close interaction between your filter and the final
ASP application that uses the filter ????

Sorry for the poor help.

Patrice

"Ray" <an*******@discussions.microsoft.com> a écrit dans le message de
news:9B**********************************@microsof t.com...
I want to create a ISAPI Filter, and I want to get some data from ASP session object. I can not handle ASP session object in ISAPI Filter, so I
will all values in ASP session object write into a file in server, and
session ID(real session ID) is Primary Key. That is to say, I will read a
record from the file with session ID. If you have a better way to do this, please tell me.
Thanks

Jul 19 '05 #4
Have perhaps a lookat :
http://msdn.microsoft.com/library/de...samplemaps.asp
http://msdn.microsoft.com/library/de...teservices.asp

My understanding is that ATL server classes are provided support for a
number of server functionnality including isapi filters and session state
services (not clear but it looks like the id used to retreive a session is a
string).

Try to confirm in another group if needed as this is quite a wild guess from
my part...

Good luck.

Patrice

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:ub**************@TK2MSFTNGP12.phx.gbl...
I'm far from being an ISAPI expert. You may want to try a group such as
microsoft.public.platformsdk.internet.server.isapi-dev instead...

I don't even see how you could access a particular session by computing the ID. Basically from what I've seen from other APIs I would expect to have
something in the API that would allows to access the whole context of the
request.

If it's not possible (could be as I believe ASP is itself an ISAPI
extension), you could use some other means such as using a cookie ,
rewriting the url (if you can do this with isapi) or using a file.

You have some kind of close interaction between your filter and the final
ASP application that uses the filter ????

Sorry for the poor help.

Patrice

"Ray" <an*******@discussions.microsoft.com> a écrit dans le message de
news:9B**********************************@microsof t.com...
I want to create a ISAPI Filter, and I want to get some data from ASP

session object. I can not handle ASP session object in ISAPI Filter, so I
will all values in ASP session object write into a file in server, and
session ID(real session ID) is Primary Key. That is to say, I will read a
record from the file with session ID.
If you have a better way to do this, please tell me.
Thanks


Jul 19 '05 #5

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

Similar topics

16
by: Sims | last post by:
Hi, I am using setcookies to store one single value. But i was reading http://za2.php.net/manual/en/function.setcookie.php and i noticed that a cookie might not be accepted yet it might return...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
2
by: June Moore | last post by:
Hi, I've got the following code that sets a session object. set obj = server.createobject("Scripting.Dictionary") set session("testobj") = obj If I want to remove the session object, do each...
3
by: Martin | last post by:
Hi all As my posting title suggests I'm having problems using InProc Session state in my ASP .NET app. I wrote a site for a friend which uses ADO .NET to keep track of a simple...
2
by: Sky | last post by:
Basically, I'm stumped on how to translate something I wrote in PHP to ASP.NET, and I'm having a hard time figuring out what is right way to do it now... The scenario in PHP was as follows: I...
1
by: Chris Austin | last post by:
A co-worker asked me today what would happen if Session.Add() method was called multiple times with the same key. My first thought was that it would throw some sort of duplicate key exception. ...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
14
by: Coleen | last post by:
Hi All :-) We have an APSX application using VB.net as the code behind, which uses one or two session variables per page. These Session variables are passed to the final page and calculations...
0
by: Caper | last post by:
Hello everyone, I am a bit confused about Innodb deadlock and the "SELECT…FOR UPDATE” statement. 1. Here is a deadlock example 1) Create actor table CREATE TABLE actor(actor_id INT...
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...
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...
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...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
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.