if you have redirect automatically on the HTTP request can you change it to follow redirects. does login need https on your site? if everything else still fails, can you copy the response from the View Response Tab into a test.html file(for the login page), open it locally in a browser and submit it (you might need to change the form action so that it goes to your server) and actually still see what happens?
On Mon, Dec 7, 2009 at 11:50 AM, jeff_vandenberg <[email protected]>wrote: > > When I access the site through a browser, it functions properly and the ASP > sessionId stays constant. > > View Login Sampler: (GET) > Set-Cookie: ASP.NET_SessionId=croa4a55pmsdat2xw2gwl555; path=/; HttpOnly > <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" > value="/wEPDwUJNDYwNjQzMzk2ZGQyy1rIHnDV4D050vhS+s6t4OSPQA==" /> > <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" > value="/wEWBAKUyZihCgKvruq2CALSxeCRDwK8w4S2BGOaHBcvtQs1+SQzLeN2DQqWcBcO" /> > > Do Login Sampler: (POST) > POST data: > > UserName=admin&Password=pass&__EVENTVALIDATION=%2FwEWBAKUyZihCgKvruq2CALSxeCRDwK8w4S2BGOaHBcvtQs1%2BSQzLeN2DQqWcBcO&__VIEWSTATE=%2FwEPDwUJNDYwNjQzMzk2ZGQyy1rIHnDV4D050vhS%2Bs6t4OSPQA%3D%3D&Submit=Login > Send Cookie: $Version=0; ASP.NET_SessionId=croa4a55pmsdat2xw2gwl555; > $Path=/ > Set-Cookie: ASP.NET_SessionId=3okphn55zcpbvf2wyugtsf55; path=/; HttpOnly > > Index Request Sampler: (GET) > Send Cookie: $Version=0; ASP.NET_SessionId=3okphn55zcpbvf2wyugtsf55; > $Path=/ > > The Index Request Sampler has a response code of 302, with a redirect back > to the login page. It seems like an extra sessionId is being sent back when > it doesn't need to be and I don't entirely understand why. > > > Deepak Shetty wrote: > > > > Hi > > You are getting a Set-Cookie as response from the server, which in the > > specific case of login may be correct, what do you see when you access > > your > > app from the browser? > > If there is no switching of session ids when you use your app in the > > browser > > then you probably need to check whether all the dynamic data like > > __EVENTVALIDATION and __VIEWSTATE are being extracted correctly by you > > from > > the previous requests > > > > regards > > deepak > > > > > > -- > View this message in context: > http://old.nabble.com/.Net-SessionId-changing-in-Cookie-tp26679091p26683008.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

