jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Need Clarification on session info in Once only controller
Date Tue, 09 Jun 2009 16:24:56 GMT
The 'session' is determined by the server - anytime you send it a sessionid
(which isnt invalid or timed out) either encoded into the URL or as a cookie
, the server will treat it as the same session. It has no direct relation to
JMeter threads / controller etc.

>For eg:
>No of users is 2
>Used Once only controller for login and logout.
>so irrespective of run duration, number of loops there will be 2 sessions
>only, one for each user....is it correct?
Assuming you have a HTTP Cookie manager (and your server is using cookies
for the session id), then first request should probably start your session
(depends on server code)- Subsequent requests pass the same session id.
Login should probably attach your credentials to your existing session (but
can in some cases start a new session depending on the server code). If you
logout then your session should be destroyed/invalidated (unless coded
otherwise). Any requests after that will create a new session . so your once
only for logout does not work, it should only be executed after all your
tests have run for the thread.

>so what happens if i put all the requests including login and logut in a
>loop controller for a certain nuber of iterations?
>New session will be created for each user for iteration ?
Probably, observe the cookies, session ids being sent

regards
deepak

On Tue, Jun 9, 2009 at 8:02 AM, TSurendar <s9884906206@gmail.com> wrote:

>
> Hi All,
>
> I want to know how the sessions are managed in once only and loop
> controller.
>
> For eg:
> No of users is 2
> Used Once only controller for login and logout.
> so irrespective of run duration, number of loops there will be 2 sessions
> only, one for each user....is it correct?
>
> so what happens if i put all the requests including login and logut in a
> loop controller for a certain nuber of iterations?
>
> New session will be created for each user for iteration ?
>
> Thanks in advance.
>
>
> Thanks,
> Surendar
>
> --
> View this message in context:
> http://www.nabble.com/Need-Clarification-on-session-info-in-Once-only-controller-tp23944654p23944654.html
> Sent from the JMeter - User mailing list archive 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message