Red Gate forums :: View topic - Cookieless Session Ids not working
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Load
ANTS Load forum

Cookieless Session Ids not working

Search in ANTS Load forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
tonymaynardsmith



Joined: 02 Dec 2006
Posts: 4

PostPosted: Sat Dec 02, 2006 4:30 pm    Post subject: Cookieless Session Ids not working Reply with quote

The Help file says that ANTS Load will handle ASP.NET Session Ids automatically.
It works OK if the Id is held in a Session Cookie, but if I set the website to use cookieless sessions ANTS Load just records the session Id as part of the URI, and appears to do nothing else with it. Certainly it is not returned correctly to the Server unless I put explicit code into the script to do so.
Is this a bug, or am I missing something?

With thanks, Tony Maynard-Smith.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Mon Dec 04, 2006 1:13 am    Post subject: Reply with quote

Hello Tony,

It does sound like Load doesn't deal with cookieless sessions managed by the ASP .NET State Service. This sounds like a problem similar to one of the 'redirect' issues from your last post. Cookieless state puts a session ID on the back of relative URLs, according to Microsoft. The sessionID is going to change for each virtual user and will not match the one recorded in the script, no doubt.

Based on this information, I think that absolute URLs may work better with ANTS Load. But in any case I will log this for us to look into.
Back to top
View user's profile Send private message
tonymaynardsmith



Joined: 02 Dec 2006
Posts: 4

PostPosted: Mon Dec 04, 2006 9:55 pm    Post subject: Reply with quote

Thanks Brian,
Yes - in a cookieless session the ID is added to the URL, in fact into the middle between the bit that defines the application and the bit defining the location within the application, as for example:

https://www.rspb.org.uk/applications/donations/(0ujnqli2ce11rwmhvtcb3vf0)/regulardonations/index.aspx

Clearly in a subsequent session the Id will be different and that recorded in a previous script will not be accepted. In fact when rerunning such a script ASP.NET continuously tries to redirect the browser to the new URL it has just invented (hence my interest in redirection).

The unfortunate effect is that one can record a script, and test it still works as long as one is within the session timeout period, but when running it later it fails (but without actually generating Server errors so it is possible not to notice).

It is possible to code round this, but I am sure the easiest way is indeed to use cookies to carry the session Ids, which ANTS Load seems to handle OK. It would be nice to see if this can be fixed however, or at a minimum flagged as a trap for the unwary.

Rgds, Tony.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Tue Dec 05, 2006 9:56 am    Post subject: Reply with quote

Hi Tony,

Have you tried replacing the relative URLs in the script with absolute URLs? Or are you describing what happens when you tried that already? According to Technet, cookieless sessions only append something onto the url if it is a path relative to the server.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group