You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sharmila Renganathan <sh...@gmail.com> on 2012/08/23 22:54:45 UTC

Need help : I have added cookie manager, but still the Session id for each request is different.

Hi,

I have some 5 request in my testplan.
I have added a Http cookie manager at the beginning.
But when i observe in the 'View results tree' listener, the jsession id is
different for all the request.
All my request are https.(Will that be the problem?)
Can some one get a solution for this.
I dono if i am doing some thing wrong.
It will be very great if some one can get me a solution.

Regards,
Sharmila R

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by Deepak Shetty <sh...@gmail.com>.
hi
it does look like you omitted something. For e.g. is there no path in the
Set-Cookie header? (I cant check the specification right now but If I
remember correctly by default the cookie is scoped to the path you accessed
from unless you explicitly say otherwise)

regards
deepak

On Fri, Aug 24, 2012 at 2:31 PM, sharmila Renganathan <sharmila1.r@gmail.com
> wrote:

> Hey Shmuel,
>
> I did not omit any information.
> Also,I have the http cookie manager at the top.
> What is that http implementation?
>
> Regards,
> Sharmila R
>
> On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower <sh...@gmail.com>
> wrote:
>
> > Seems like in the second request the jsession cookie is not set in the
> > headers list (or you omitted it). Make sure the cookie manager is at the
> > top level of the thread group for the two samplers to share cookies.
> >
> > Also make sure you are using same http implimentation on both samplers.
> >
> > Shmuel.
> > בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <
> sharmila1.r@gmail.com
> > >:
> >
> > > Request1 data:
> > > POST
> > >
> > >
> >
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
> > >
> > > POST data:
> > > selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
> > >
> > > Cookie Data:
> > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > test.liquidation.com
> > >
> > > Request Headers:
> > > Accept-Language: en-IN
> > > Content-Length: 69
> > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > Connection: keep-alive
> > > Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > Content-Type: application/x-www-form-urlencoded
> > >
> > >
> > > In the sampler results:
> > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > >
> > > Request2:
> > > POST https://test-wmos1.test.liquidation.com:11001/j_security_check
> > >
> > > POST data:
> > >
> > >
> >
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
> > >
> > > Cookie Data:
> > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > test.liquidation.com
> > >
> > > Request Headers:
> > > Accept-Language: en-IN
> > > Content-Length: 159
> > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > Connection: keep-alive
> > > Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > Content-Type: application/x-www-form-urlencoded
> > >
> > > In the sampler results of the 1st request:
> > > Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is present.
> > >
> > > In the sampler result of the 2nd request:
> > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > >
> > > Regards,
> > > Sharmila R
> > >
> > >
> > > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com>
> > wrote:
> > >
> > > > are you accessing the site with the same dns name as you are getting
> in
> > > the
> > > > set cookie header? For e.g. the set-cookie might be saying domain=
> > > > www.yoursite.com and you might have given the IP address in the
> > script.
> > > > If not add a view results tree listener and
> > > > see the request / response for a couple of requests and post the,
> here
> > > >
> > > > And in addition are you sure the site is using cookies and not url
> > > > rewriting?
> > > >
> > > > regards
> > > > deepak
> > > >
> > > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > > > sharmila1.r@gmail.com
> > > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have some 5 request in my testplan.
> > > > > I have added a Http cookie manager at the beginning.
> > > > > But when i observe in the 'View results tree' listener, the
> jsession
> > id
> > > > is
> > > > > different for all the request.
> > > > > All my request are https.(Will that be the problem?)
> > > > > Can some one get a solution for this.
> > > > > I dono if i am doing some thing wrong.
> > > > > It will be very great if some one can get me a solution.
> > > > >
> > > > > Regards,
> > > > > Sharmila R
> > > > >
> > > >
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by Jakub Białek <ra...@gmail.com>.
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager,
the 'Cookie Policy' drop down list.

-- Ragnor --

On 27 August 2012 01:32, sharmila Renganathan <sh...@gmail.com> wrote:

> How to change the cookie policy ?
>
> On Sun, Aug 26, 2012 at 5:58 AM, Jakub Białek <ra...@gmail.com> wrote:
>
> > Try different cookie policies the default in HTTP Cookie Manager is
> > 'compatibility' but it not always works.
> >
> > -- Ragnor --
> >
> > On 26 August 2012 07:59, Shmuel Krakower <sh...@gmail.com> wrote:
> >
> > > Look at the http samplers and make sure they are both using HTTP Client
> > > 4/3.1 or Java.
> > > בתאריך 2012 8 25 00:32, מאת "sharmila Renganathan" <
> > sharmila1.r@gmail.com
> > > >:
> > >
> > > > Hey Shmuel,
> > > >
> > > > I did not omit any information.
> > > > Also,I have the http cookie manager at the top.
> > > > What is that http implementation?
> > > >
> > > > Regards,
> > > > Sharmila R
> > > >
> > > > On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower <shmulikk@gmail.com
> >
> > > > wrote:
> > > >
> > > > > Seems like in the second request the jsession cookie is not set in
> > the
> > > > > headers list (or you omitted it). Make sure the cookie manager is
> at
> > > the
> > > > > top level of the thread group for the two samplers to share
> cookies.
> > > > >
> > > > > Also make sure you are using same http implimentation on both
> > samplers.
> > > > >
> > > > > Shmuel.
> > > > > בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <
> > > > sharmila1.r@gmail.com
> > > > > >:
> > > > >
> > > > > > Request1 data:
> > > > > > POST
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
> > > > > >
> > > > > > POST data:
> > > > > >
> > selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
> > > > > >
> > > > > > Cookie Data:
> > > > > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > > > > test.liquidation.com
> > > > > >
> > > > > > Request Headers:
> > > > > > Accept-Language: en-IN
> > > > > > Content-Length: 69
> > > > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
> > WOW64;
> > > > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET
> > CLR
> > > > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > > > > Connection: keep-alive
> > > > > > Accept: application/x-ms-application, image/jpeg,
> > > application/xaml+xml,
> > > > > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > > > > Content-Type: application/x-www-form-urlencoded
> > > > > >
> > > > > >
> > > > > > In the sampler results:
> > > > > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > > > > >
> > > > > > Request2:
> > > > > > POST
> > https://test-wmos1.test.liquidation.com:11001/j_security_check
> > > > > >
> > > > > > POST data:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
> > > > > >
> > > > > > Cookie Data:
> > > > > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > > > > test.liquidation.com
> > > > > >
> > > > > > Request Headers:
> > > > > > Accept-Language: en-IN
> > > > > > Content-Length: 159
> > > > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
> > WOW64;
> > > > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET
> > CLR
> > > > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > > > > Connection: keep-alive
> > > > > > Accept: application/x-ms-application, image/jpeg,
> > > application/xaml+xml,
> > > > > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > > > > Content-Type: application/x-www-form-urlencoded
> > > > > >
> > > > > > In the sampler results of the 1st request:
> > > > > > Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is
> > present.
> > > > > >
> > > > > > In the sampler result of the 2nd request:
> > > > > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > > > > >
> > > > > > Regards,
> > > > > > Sharmila R
> > > > > >
> > > > > >
> > > > > > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <
> shettyd@gmail.com>
> > > > > wrote:
> > > > > >
> > > > > > > are you accessing the site with the same dns name as you are
> > > getting
> > > > in
> > > > > > the
> > > > > > > set cookie header? For e.g. the set-cookie might be saying
> > domain=
> > > > > > > www.yoursite.com and you might have given the IP address in
> the
> > > > > script.
> > > > > > > If not add a view results tree listener and
> > > > > > > see the request / response for a couple of requests and post
> the,
> > > > here
> > > > > > >
> > > > > > > And in addition are you sure the site is using cookies and not
> > url
> > > > > > > rewriting?
> > > > > > >
> > > > > > > regards
> > > > > > > deepak
> > > > > > >
> > > > > > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > > > > > > sharmila1.r@gmail.com
> > > > > > > > wrote:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I have some 5 request in my testplan.
> > > > > > > > I have added a Http cookie manager at the beginning.
> > > > > > > > But when i observe in the 'View results tree' listener, the
> > > > jsession
> > > > > id
> > > > > > > is
> > > > > > > > different for all the request.
> > > > > > > > All my request are https.(Will that be the problem?)
> > > > > > > > Can some one get a solution for this.
> > > > > > > > I dono if i am doing some thing wrong.
> > > > > > > > It will be very great if some one can get me a solution.
> > > > > > > >
> > > > > > > > Regards,
> > > > > > > > Sharmila R
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by sharmila Renganathan <sh...@gmail.com>.
How to change the cookie policy ?

On Sun, Aug 26, 2012 at 5:58 AM, Jakub Białek <ra...@gmail.com> wrote:

> Try different cookie policies the default in HTTP Cookie Manager is
> 'compatibility' but it not always works.
>
> -- Ragnor --
>
> On 26 August 2012 07:59, Shmuel Krakower <sh...@gmail.com> wrote:
>
> > Look at the http samplers and make sure they are both using HTTP Client
> > 4/3.1 or Java.
> > בתאריך 2012 8 25 00:32, מאת "sharmila Renganathan" <
> sharmila1.r@gmail.com
> > >:
> >
> > > Hey Shmuel,
> > >
> > > I did not omit any information.
> > > Also,I have the http cookie manager at the top.
> > > What is that http implementation?
> > >
> > > Regards,
> > > Sharmila R
> > >
> > > On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower <sh...@gmail.com>
> > > wrote:
> > >
> > > > Seems like in the second request the jsession cookie is not set in
> the
> > > > headers list (or you omitted it). Make sure the cookie manager is at
> > the
> > > > top level of the thread group for the two samplers to share cookies.
> > > >
> > > > Also make sure you are using same http implimentation on both
> samplers.
> > > >
> > > > Shmuel.
> > > > בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <
> > > sharmila1.r@gmail.com
> > > > >:
> > > >
> > > > > Request1 data:
> > > > > POST
> > > > >
> > > > >
> > > >
> > >
> >
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
> > > > >
> > > > > POST data:
> > > > >
> selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
> > > > >
> > > > > Cookie Data:
> > > > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > > > test.liquidation.com
> > > > >
> > > > > Request Headers:
> > > > > Accept-Language: en-IN
> > > > > Content-Length: 69
> > > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
> WOW64;
> > > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET
> CLR
> > > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > > > Connection: keep-alive
> > > > > Accept: application/x-ms-application, image/jpeg,
> > application/xaml+xml,
> > > > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > > > Content-Type: application/x-www-form-urlencoded
> > > > >
> > > > >
> > > > > In the sampler results:
> > > > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > > > >
> > > > > Request2:
> > > > > POST
> https://test-wmos1.test.liquidation.com:11001/j_security_check
> > > > >
> > > > > POST data:
> > > > >
> > > > >
> > > >
> > >
> >
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
> > > > >
> > > > > Cookie Data:
> > > > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > > > test.liquidation.com
> > > > >
> > > > > Request Headers:
> > > > > Accept-Language: en-IN
> > > > > Content-Length: 159
> > > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
> WOW64;
> > > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET
> CLR
> > > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > > > Connection: keep-alive
> > > > > Accept: application/x-ms-application, image/jpeg,
> > application/xaml+xml,
> > > > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > > > Content-Type: application/x-www-form-urlencoded
> > > > >
> > > > > In the sampler results of the 1st request:
> > > > > Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is
> present.
> > > > >
> > > > > In the sampler result of the 2nd request:
> > > > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > > > >
> > > > > Regards,
> > > > > Sharmila R
> > > > >
> > > > >
> > > > > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com>
> > > > wrote:
> > > > >
> > > > > > are you accessing the site with the same dns name as you are
> > getting
> > > in
> > > > > the
> > > > > > set cookie header? For e.g. the set-cookie might be saying
> domain=
> > > > > > www.yoursite.com and you might have given the IP address in the
> > > > script.
> > > > > > If not add a view results tree listener and
> > > > > > see the request / response for a couple of requests and post the,
> > > here
> > > > > >
> > > > > > And in addition are you sure the site is using cookies and not
> url
> > > > > > rewriting?
> > > > > >
> > > > > > regards
> > > > > > deepak
> > > > > >
> > > > > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > > > > > sharmila1.r@gmail.com
> > > > > > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I have some 5 request in my testplan.
> > > > > > > I have added a Http cookie manager at the beginning.
> > > > > > > But when i observe in the 'View results tree' listener, the
> > > jsession
> > > > id
> > > > > > is
> > > > > > > different for all the request.
> > > > > > > All my request are https.(Will that be the problem?)
> > > > > > > Can some one get a solution for this.
> > > > > > > I dono if i am doing some thing wrong.
> > > > > > > It will be very great if some one can get me a solution.
> > > > > > >
> > > > > > > Regards,
> > > > > > > Sharmila R
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by Jakub Białek <ra...@gmail.com>.
Try different cookie policies the default in HTTP Cookie Manager is
'compatibility' but it not always works.

-- Ragnor --

On 26 August 2012 07:59, Shmuel Krakower <sh...@gmail.com> wrote:

> Look at the http samplers and make sure they are both using HTTP Client
> 4/3.1 or Java.
> בתאריך 2012 8 25 00:32, מאת "sharmila Renganathan" <sharmila1.r@gmail.com
> >:
>
> > Hey Shmuel,
> >
> > I did not omit any information.
> > Also,I have the http cookie manager at the top.
> > What is that http implementation?
> >
> > Regards,
> > Sharmila R
> >
> > On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower <sh...@gmail.com>
> > wrote:
> >
> > > Seems like in the second request the jsession cookie is not set in the
> > > headers list (or you omitted it). Make sure the cookie manager is at
> the
> > > top level of the thread group for the two samplers to share cookies.
> > >
> > > Also make sure you are using same http implimentation on both samplers.
> > >
> > > Shmuel.
> > > בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <
> > sharmila1.r@gmail.com
> > > >:
> > >
> > > > Request1 data:
> > > > POST
> > > >
> > > >
> > >
> >
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
> > > >
> > > > POST data:
> > > > selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
> > > >
> > > > Cookie Data:
> > > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > > test.liquidation.com
> > > >
> > > > Request Headers:
> > > > Accept-Language: en-IN
> > > > Content-Length: 69
> > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > > Connection: keep-alive
> > > > Accept: application/x-ms-application, image/jpeg,
> application/xaml+xml,
> > > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > > Content-Type: application/x-www-form-urlencoded
> > > >
> > > >
> > > > In the sampler results:
> > > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > > >
> > > > Request2:
> > > > POST https://test-wmos1.test.liquidation.com:11001/j_security_check
> > > >
> > > > POST data:
> > > >
> > > >
> > >
> >
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
> > > >
> > > > Cookie Data:
> > > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > > test.liquidation.com
> > > >
> > > > Request Headers:
> > > > Accept-Language: en-IN
> > > > Content-Length: 159
> > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > > Connection: keep-alive
> > > > Accept: application/x-ms-application, image/jpeg,
> application/xaml+xml,
> > > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > > Content-Type: application/x-www-form-urlencoded
> > > >
> > > > In the sampler results of the 1st request:
> > > > Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is present.
> > > >
> > > > In the sampler result of the 2nd request:
> > > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > > >
> > > > Regards,
> > > > Sharmila R
> > > >
> > > >
> > > > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com>
> > > wrote:
> > > >
> > > > > are you accessing the site with the same dns name as you are
> getting
> > in
> > > > the
> > > > > set cookie header? For e.g. the set-cookie might be saying domain=
> > > > > www.yoursite.com and you might have given the IP address in the
> > > script.
> > > > > If not add a view results tree listener and
> > > > > see the request / response for a couple of requests and post the,
> > here
> > > > >
> > > > > And in addition are you sure the site is using cookies and not url
> > > > > rewriting?
> > > > >
> > > > > regards
> > > > > deepak
> > > > >
> > > > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > > > > sharmila1.r@gmail.com
> > > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I have some 5 request in my testplan.
> > > > > > I have added a Http cookie manager at the beginning.
> > > > > > But when i observe in the 'View results tree' listener, the
> > jsession
> > > id
> > > > > is
> > > > > > different for all the request.
> > > > > > All my request are https.(Will that be the problem?)
> > > > > > Can some one get a solution for this.
> > > > > > I dono if i am doing some thing wrong.
> > > > > > It will be very great if some one can get me a solution.
> > > > > >
> > > > > > Regards,
> > > > > > Sharmila R
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by Shmuel Krakower <sh...@gmail.com>.
Look at the http samplers and make sure they are both using HTTP Client
4/3.1 or Java.
בתאריך 2012 8 25 00:32, מאת "sharmila Renganathan" <sh...@gmail.com>:

> Hey Shmuel,
>
> I did not omit any information.
> Also,I have the http cookie manager at the top.
> What is that http implementation?
>
> Regards,
> Sharmila R
>
> On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower <sh...@gmail.com>
> wrote:
>
> > Seems like in the second request the jsession cookie is not set in the
> > headers list (or you omitted it). Make sure the cookie manager is at the
> > top level of the thread group for the two samplers to share cookies.
> >
> > Also make sure you are using same http implimentation on both samplers.
> >
> > Shmuel.
> > בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <
> sharmila1.r@gmail.com
> > >:
> >
> > > Request1 data:
> > > POST
> > >
> > >
> >
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
> > >
> > > POST data:
> > > selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
> > >
> > > Cookie Data:
> > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > test.liquidation.com
> > >
> > > Request Headers:
> > > Accept-Language: en-IN
> > > Content-Length: 69
> > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > Connection: keep-alive
> > > Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > Content-Type: application/x-www-form-urlencoded
> > >
> > >
> > > In the sampler results:
> > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > >
> > > Request2:
> > > POST https://test-wmos1.test.liquidation.com:11001/j_security_check
> > >
> > > POST data:
> > >
> > >
> >
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
> > >
> > > Cookie Data:
> > > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > > test.liquidation.com
> > >
> > > Request Headers:
> > > Accept-Language: en-IN
> > > Content-Length: 159
> > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > > Connection: keep-alive
> > > Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> > > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > > Content-Type: application/x-www-form-urlencoded
> > >
> > > In the sampler results of the 1st request:
> > > Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is present.
> > >
> > > In the sampler result of the 2nd request:
> > > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> > >
> > > Regards,
> > > Sharmila R
> > >
> > >
> > > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com>
> > wrote:
> > >
> > > > are you accessing the site with the same dns name as you are getting
> in
> > > the
> > > > set cookie header? For e.g. the set-cookie might be saying domain=
> > > > www.yoursite.com and you might have given the IP address in the
> > script.
> > > > If not add a view results tree listener and
> > > > see the request / response for a couple of requests and post the,
> here
> > > >
> > > > And in addition are you sure the site is using cookies and not url
> > > > rewriting?
> > > >
> > > > regards
> > > > deepak
> > > >
> > > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > > > sharmila1.r@gmail.com
> > > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have some 5 request in my testplan.
> > > > > I have added a Http cookie manager at the beginning.
> > > > > But when i observe in the 'View results tree' listener, the
> jsession
> > id
> > > > is
> > > > > different for all the request.
> > > > > All my request are https.(Will that be the problem?)
> > > > > Can some one get a solution for this.
> > > > > I dono if i am doing some thing wrong.
> > > > > It will be very great if some one can get me a solution.
> > > > >
> > > > > Regards,
> > > > > Sharmila R
> > > > >
> > > >
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by sharmila Renganathan <sh...@gmail.com>.
Hey Shmuel,

I did not omit any information.
Also,I have the http cookie manager at the top.
What is that http implementation?

Regards,
Sharmila R

On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower <sh...@gmail.com> wrote:

> Seems like in the second request the jsession cookie is not set in the
> headers list (or you omitted it). Make sure the cookie manager is at the
> top level of the thread group for the two samplers to share cookies.
>
> Also make sure you are using same http implimentation on both samplers.
>
> Shmuel.
> בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <sharmila1.r@gmail.com
> >:
>
> > Request1 data:
> > POST
> >
> >
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
> >
> > POST data:
> > selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
> >
> > Cookie Data:
> > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > test.liquidation.com
> >
> > Request Headers:
> > Accept-Language: en-IN
> > Content-Length: 69
> > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > Connection: keep-alive
> > Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > Content-Type: application/x-www-form-urlencoded
> >
> >
> > In the sampler results:
> > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> >
> > Request2:
> > POST https://test-wmos1.test.liquidation.com:11001/j_security_check
> >
> > POST data:
> >
> >
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
> >
> > Cookie Data:
> > $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> > test.liquidation.com
> >
> > Request Headers:
> > Accept-Language: en-IN
> > Content-Length: 159
> > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> > Connection: keep-alive
> > Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> > image/gif, image/pjpeg, application/x-ms-xbap, */*
> > Content-Type: application/x-www-form-urlencoded
> >
> > In the sampler results of the 1st request:
> > Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is present.
> >
> > In the sampler result of the 2nd request:
> > Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
> >
> > Regards,
> > Sharmila R
> >
> >
> > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com>
> wrote:
> >
> > > are you accessing the site with the same dns name as you are getting in
> > the
> > > set cookie header? For e.g. the set-cookie might be saying domain=
> > > www.yoursite.com and you might have given the IP address in the
> script.
> > > If not add a view results tree listener and
> > > see the request / response for a couple of requests and post the, here
> > >
> > > And in addition are you sure the site is using cookies and not url
> > > rewriting?
> > >
> > > regards
> > > deepak
> > >
> > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > > sharmila1.r@gmail.com
> > > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I have some 5 request in my testplan.
> > > > I have added a Http cookie manager at the beginning.
> > > > But when i observe in the 'View results tree' listener, the jsession
> id
> > > is
> > > > different for all the request.
> > > > All my request are https.(Will that be the problem?)
> > > > Can some one get a solution for this.
> > > > I dono if i am doing some thing wrong.
> > > > It will be very great if some one can get me a solution.
> > > >
> > > > Regards,
> > > > Sharmila R
> > > >
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by Shmuel Krakower <sh...@gmail.com>.
Seems like in the second request the jsession cookie is not set in the
headers list (or you omitted it). Make sure the cookie manager is at the
top level of the thread group for the two samplers to share cookies.

Also make sure you are using same http implimentation on both samplers.

Shmuel.
בתאריך 2012 8 24 04:54, מאת "sharmila Renganathan" <sh...@gmail.com>:

> Request1 data:
> POST
>
> https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp
>
> POST data:
> selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish
>
> Cookie Data:
> $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> test.liquidation.com
>
> Request Headers:
> Accept-Language: en-IN
> Content-Length: 69
> User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> Connection: keep-alive
> Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> image/gif, image/pjpeg, application/x-ms-xbap, */*
> Content-Type: application/x-www-form-urlencoded
>
>
> In the sampler results:
> Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
>
> Request2:
> POST https://test-wmos1.test.liquidation.com:11001/j_security_check
>
> POST data:
>
> MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18
>
> Cookie Data:
> $Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
> test.liquidation.com
>
> Request Headers:
> Accept-Language: en-IN
> Content-Length: 159
> User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
> Connection: keep-alive
> Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
> image/gif, image/pjpeg, application/x-ms-xbap, */*
> Content-Type: application/x-www-form-urlencoded
>
> In the sampler results of the 1st request:
> Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is present.
>
> In the sampler result of the 2nd request:
> Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;
>
> Regards,
> Sharmila R
>
>
> On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
> > are you accessing the site with the same dns name as you are getting in
> the
> > set cookie header? For e.g. the set-cookie might be saying domain=
> > www.yoursite.com and you might have given the IP address in the script.
> > If not add a view results tree listener and
> > see the request / response for a couple of requests and post the, here
> >
> > And in addition are you sure the site is using cookies and not url
> > rewriting?
> >
> > regards
> > deepak
> >
> > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> > sharmila1.r@gmail.com
> > > wrote:
> >
> > > Hi,
> > >
> > > I have some 5 request in my testplan.
> > > I have added a Http cookie manager at the beginning.
> > > But when i observe in the 'View results tree' listener, the jsession id
> > is
> > > different for all the request.
> > > All my request are https.(Will that be the problem?)
> > > Can some one get a solution for this.
> > > I dono if i am doing some thing wrong.
> > > It will be very great if some one can get me a solution.
> > >
> > > Regards,
> > > Sharmila R
> > >
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by sharmila Renganathan <sh...@gmail.com>.
Request1 data:
POST
https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedirect.jsp

POST data:
selectedLocaleId=null&j_username=hmamidipelli&j_password=20%23Redfish

Cookie Data:
$Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
test.liquidation.com

Request Headers:
Accept-Language: en-IN
Content-Length: 69
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
Connection: keep-alive
Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
image/gif, image/pjpeg, application/x-ms-xbap, */*
Content-Type: application/x-www-form-urlencoded


In the sampler results:
Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;

Request2:
POST https://test-wmos1.test.liquidation.com:11001/j_security_check

POST data:
MANH-CSRFToken=EAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=&j_username=hmamidipelli&j_password=1D581EDDD4672CA0753D91B2FF38F586849A896618B8BA023DC747D2CA773E18

Cookie Data:
$Version=0; scope_deploymentID=29-Jul-2012; $Path=/; $Domain=.
test.liquidation.com

Request Headers:
Accept-Language: en-IN
Content-Length: 159
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E)
Connection: keep-alive
Accept: application/x-ms-application, image/jpeg, application/xaml+xml,
image/gif, image/pjpeg, application/x-ms-xbap, */*
Content-Type: application/x-www-form-urlencoded

In the sampler results of the 1st request:
Set-Cookie: JSESSIONID=5AD6B1E865B8973A32E0994BC72B49BE; is present.

In the sampler result of the 2nd request:
Set-Cookie: JSESSIONID=4BFA176CADFC51B302F1D54FE7326B01;

Regards,
Sharmila R


On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty <sh...@gmail.com> wrote:

> are you accessing the site with the same dns name as you are getting in the
> set cookie header? For e.g. the set-cookie might be saying domain=
> www.yoursite.com and you might have given the IP address in the script.
> If not add a view results tree listener and
> see the request / response for a couple of requests and post the, here
>
> And in addition are you sure the site is using cookies and not url
> rewriting?
>
> regards
> deepak
>
> On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <
> sharmila1.r@gmail.com
> > wrote:
>
> > Hi,
> >
> > I have some 5 request in my testplan.
> > I have added a Http cookie manager at the beginning.
> > But when i observe in the 'View results tree' listener, the jsession id
> is
> > different for all the request.
> > All my request are https.(Will that be the problem?)
> > Can some one get a solution for this.
> > I dono if i am doing some thing wrong.
> > It will be very great if some one can get me a solution.
> >
> > Regards,
> > Sharmila R
> >
>

Re: Need help : I have added cookie manager, but still the Session id for each request is different.

Posted by Deepak Shetty <sh...@gmail.com>.
are you accessing the site with the same dns name as you are getting in the
set cookie header? For e.g. the set-cookie might be saying domain=
www.yoursite.com and you might have given the IP address in the script.
If not add a view results tree listener and
see the request / response for a couple of requests and post the, here

And in addition are you sure the site is using cookies and not url
rewriting?

regards
deepak

On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan <sharmila1.r@gmail.com
> wrote:

> Hi,
>
> I have some 5 request in my testplan.
> I have added a Http cookie manager at the beginning.
> But when i observe in the 'View results tree' listener, the jsession id is
> different for all the request.
> All my request are https.(Will that be the problem?)
> Can some one get a solution for this.
> I dono if i am doing some thing wrong.
> It will be very great if some one can get me a solution.
>
> Regards,
> Sharmila R
>