Home > Archive > C# > November 2004 > Session.abandon but NOT ASP.Net
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Session.abandon but NOT ASP.Net
|
|
|
| I'm calling a webpage from an application..not a web application, not
a browser... but rather getting some timing and content verification,
so its a windows app that will eventually be transformed into a
service.
Using C# I'm doing a WebRequest.Create(site); then
WebRequest.GetResponse(); and then reading the response stream to the
end and do my processing followed by a Close() on the response stream.
All well and good, BUT we're leaving an open session which then skews
timing results on subsequent calls because its way faster the second
or more times until a timeout occurs along the way and suddenly it
jumps back to the initial time.
Basically I'm looking for a way to kill the session after I've called
my page so that when I come back I'll look like a new user and have
the timing of a new session creation. Is this possible from my end or
is this strictly a function of the asp or aspx on the other (web
server) end?
| |
| Jason Kester 2004-11-16, 6:54 pm |
| Tom@TheEnderles.org (Tom) wrote in message news:<ac0692b.0411110725.65c841bb@posting.google.com>...
> Basically I'm looking for a way to kill the session after I've called
> my page so that when I come back I'll look like a new user and have
> the timing of a new session creation. Is this possible from my end or
> is this strictly a function of the asp or aspx on the other (web
> server) end?
The best you could do from the client would be to kill your cookie.
This would effectively end your session, but it sounds like that's not
what you're looking for.
Probably the best you can do would be to make a separate page or
webservice to kill your session explicitly. So you'd call
YourTimingThing.aspx, followed by KillSession.aspx from your client
application on every iteration.
Good luck!
Jason
http://www.expatsoftware.com/
| |
| Jason Kester 2004-11-22, 3:58 am |
| Tom@TheEnderles.org (Tom) wrote in message news:<ac0692b.0411110725.65c841bb@posting.google.com>...
> Basically I'm looking for a way to kill the session after I've called
> my page so that when I come back I'll look like a new user and have
> the timing of a new session creation. Is this possible from my end or
> is this strictly a function of the asp or aspx on the other (web
> server) end?
The best you could do from the client would be to kill your cookie.
This would effectively end your session, but it sounds like that's not
what you're looking for.
Probably the best you can do would be to make a separate page or
webservice to kill your session explicitly. So you'd call
YourTimingThing.aspx, followed by KillSession.aspx from your client
application on every iteration.
Good luck!
Jason
http://www.expatsoftware.com/
|
|
|
|
|