jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jax <jaxles...@gmail.com>
Subject Another JSP Login problem
Date Tue, 01 Aug 2006 23:52:59 GMT

Hi Everyone,

I have trawled through this site (and others via google) and I can't the
answer I'm looking for so am posting this question here.

1) I have a jsp page called setup.jsp. This checks for a cookie called
'username'. If it can't find it, then it redirects to login.jsp.

2) login.jsp takes a username and password and submits to setup.jsp.  Before
the 'submit' occurs, a bit of javascript adds 'username' to the cookie with
the value of what is entered by the user.  Once submitted, setup.jsp will
redirect to home.jsp (which requires that there is a username cookie
present).

I have setup a HTTP Request Defaults and a HTTP Cookie Manager.  
My HTTP Request  does a POST and has Redirect Automatically checked on and
Follow Redirects checked on also.

After Running the Thread Group, The Sampler Result contains:
Thread Name: Thread Group 1-1
Sample Start: Tue Aug 01 16:42:32 PDT 2006
Load time: 16
HTTP response code: 200
HTTP response message: OK

HTTP response headers:
HTTP/1.1 200 OK
Date: Tue, 01 Aug 2006 23:42:32 GMT
Server: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 with
CR209251
Content-Length: 4009
Content-Type: text/html;charset=ISO-8859-1
Set-Cookie:
JSESSIONID=EPmoLXWNcAHeeSaVzRf4zOwTOtQ3EOq8o81Xjwg5m7wTZqS6DD5L!-1729165304;
path=/

And the Request contains
POST http://localhost:7001/RAVEmanage/rm_login.jsp

POST data:
j_username=jleslie&j_password=summer1

[no cookies]

Request Headers:

AND I am redirected to the login.jsp page.  

Can someone please tell me what I am doing wrong?

Thanks in advance,

Jax.

-- 
View this message in context: http://www.nabble.com/Another-JSP-Login-problem-tf2036939.html#a5605313
Sent from the JMeter - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message