| Author |
Message |
slaneyrw
Joined: 08 Feb 2005 Posts: 28
|
Posted: Mon May 01, 2006 11:10 pm Post subject: Cookie problem |
|
|
Hi
I am evaluating the ANTS Load product, and I am having problems with cookies.
A simple script requests a homepage, submits a username/password and then logs out.
The login page redirects
If I record a script based from the browser, it gets all 4 pages
( index.aspx, login.aspx, myaccount.aspx, logout.aspx ), including the redirect from login.aspx to myaccount.aspx.
If I replay the script, then call to myaccount.aspx returns a 302 instead of 200, beause the user is not logged in, as the cookie information is not returned.
I have manually inspected the request object in the aspx page to verify this.
I checked out the article on the viewstate/cookie here in the knowledgebase, and I dumped the header information to Me.LogToFile. the Set-Cookie header IS returned as expected from each step.
I have tried clearing the CookieContainter at the start of each run, and also built the cookie collection manually (from the set-cookie header) after each page request, to no avail.
I don't know what to try next. Any help will be appreciated, but if I can't work this out, the product will be of no use. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Mon May 08, 2006 7:04 pm Post subject: |
|
|
Hello,
Sorry, I don't know what it could be. Maybe if you post up the script and point out the place where the redirect happens? _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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