SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    session ID is not assigned to the Variable

    i hav recorded a sample application of WEB TOUR

    The script generated


    PRIMARY POST URI "http://amity9:1080/WebTours/login.pl HTTP/1.0" ON 1 &
    HEADER DEFAULT_HEADERS &
    ,WITH {"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, " &
    "application/x-shockwave-flash, application/vnd.ms-excel, application/msword, */*", &
    "Referer: http://amity9:1080/WebTours/nav.pl?in=home", &
    "Accept-Language: en-us", &
    "Content-Type: application/x-www-form-urlencoded", &
    "Connection: Keep-Alive", &
    "Content-Length: 121", &
    "Pragma: no-cache", &
    "Cookie: "+cookie_2_1} &
    ,BODY "userSession=97943.4942081815fADHQziptiDDDDDDDAccH piVAQ&username=test&password=test&JSFo rmSubmi" &
    "t=off&login.x=38&login.y=13"

    Load Response_Info Header on 1 &
    Into UD_USID &
    ,WITH "Set-Cookie,MTUserInfo"

    (UD_USID is the variable i hav defined to get the session ID)

    While compiling i am getting

    1-1 :[131]:Connection 2: receiving results with status 200
    1-1 :[138]:REQUEST(1): POST http://amity9:1080/WebTours/login.pl HTTP/1.0
    1-1 :[152]:Connection 1: receiving results with status 200
    1-1 :[152]:HTTPRESPONSE(1): Parsing header contents. Name: UD_USID Identity: Set-Cookie,MTUserInfo
    !Cannot find cookie MTUserInfo, must be one of the following:
    !-- end of the available cookies list --
    1-1 :[152]:HTTPRESPONSE(1): Setting UD_USID to ''
    1-1 :[156]:WAIT : Delay: 375
    1-1 :[164]:REQUEST(1): GET http://amity9:1080/WebTours/login.pl?intro=true HTTP/1.0
    1-1 :[179]:REQUEST(2): GET http://amity9:1080/WebTours/nav.pl?p...nu&in=home HTTP/1.0
    1-1 :[188]:WAIT : Delay: 375

    It is giving
    "!Cannot find cookie MTUserInfo, must be one of the following:
    !-- end of the available cookies list --"

    and nothing is displayed in this list.

    Is i am trying to get "userSession=97943.4942081815fADHQziptiDDDDDDDAccH piVAQ"but the varable shows blank in "Test Audit" of the result screen

    kindly suggest how shall i proceed

    -regards

  2. #2
    Member
    Join Date
    Feb 2007
    Location
    The Web
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: session ID is not assigned to the Variable

    If I have understood your problem correctly, you are adding

    Load Response_Info Header on 1 &
    Into UD_USID &
    ,WITH "Set-Cookie,MTUserInfo"


    to capture the userSession value.

    You should note here that the userSession value is being POSTed in the PRIMARY POST URI "http://amity9:1080/WebTours/login.pl HTTP/1.0" ON 1 request. The place you should be looking for this is the portion where the server sends this userSession value (a preceding PRIMARY POST or a PRIMARY GET). So your Load Respose_info should be placed just after the aforementioned PRIMARY POST or a PRIMARY GET.

    Try it out. If this wasn't your question, try posting it differently for all to understand better.

    -regards,
    Mrigs
    <font color="blue">All limits are self-imposed.</font>

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: session ID is not assigned to the Variable

    hi Mrigs

    just now i am back to office, thanks for the reply.

    i have used
    Load Response_Info Header on 1 &amp;
    Into UD_USID &amp;
    ,WITH "Set-Cookie,MTUserInfo"

    after the "Primary Post URL" where the "Body" contain 1.Usersessionid, 2.Username, 3.password

    when i use
    Report "user ", UD_USID
    in rhe result is is emply

    can u guess what it might be. pls.

    thanks and regards

  4. #4
    Member
    Join Date
    Mar 2008
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: session ID is not assigned to the Variable

    few points u can take care for this

    UD_USID should be declared as character,

    place the load response info before PRIMARY POST



    note :check that the session id should appear only in one place for hole script then only u can use dome addressing to carry out correlation of seesion id

    also try to change header to body in load response info function.

    Thanks
    SHAFEEQ

  5. #5
    Junior Member
    Join Date
    Mar 2008
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: session ID is not assigned to the Variable

    Dear SHAFEEQ

    now i can get the session ID to a variable
    from the DOM i assigned the address to a variable

    thanks

  6. #6
    Member
    Join Date
    Feb 2007
    Location
    The Web
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: session ID is not assigned to the Variable

    Hi,

    As Shafeeq said, your load response_info header should appear before the PRIMARY POST instruction (where you are submitting the userID, password and sessionValue). The question to ask here is "HOW MUCH BEFORE"? I'd rather put it this way: place your LOAD instruction immediately AFTER the instruction (GET or POST) which is fetching the userSession value. So the task for you is to <u>correctly identify</u> the instruction which fetches the userSession value for you.

    The POST instruction you are referring to is submitting a hard-coded usersession value to the server along with the userName and password. This is why you get no proper response in the "UD_USID" variable.

    UserSession values are usually fetched by the first request (usually a PRIMARY GET) for the web site. So you should have your UserSession capturing Load command just after this request. Again, this depends on application to application.

    Try solving this. If you still have problem consider posting your SCL script (from the start till the portion where you get the error).

    -regards,
    Mrigs
    <font color="blue">All limits are self-imposed.</font>

  7. #7
    Junior Member
    Join Date
    Mar 2008
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: session ID is not assigned to the Variable

    Dear Mrigs,

    As i see the record SCL it has the "Load response_info header on" always only after the "Primary Post". and the "Load response_info body on" is inserted when we assaign a address through the DOM. this also insert the "Load response_info body" onlt after the "Primary Post". so what i have understood is to get a session id we have to assign that link to a address through the DOM.
    now i can get the session ID.

    thanks

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.34%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:53 PM.

Copyright BetaSoft Inc.