Hi All, We have PA Server Monitor in use right now, and we are loving it. However, I am facing one big problem that doesn't seem to be covered by the standard monitors.

I need to login to a website (post username/pwd to login page), verify that the login is successful (200 reponse code or success text), and then logout (get logout page). The logout is needed to prevent sessions from building up on the site.

My current thoughts are to script the transaction with XHR object in vbscript. That is going to be a pain.

Hopefully though, someone has an alternative apporach, or a similar script to share :)

asked 02 Oct '12, 20:57

wtranmer's gravatar image

wtranmer
210113
accept rate: 0%


The Web Page monitor can watch multiple pages, and they are processed in the order entered into the monitor. So I'd recommend watching the login page first, then the logout page. I assume you'll need to check the "Enable cookies with request" so the logout works with the correct session.

link

answered 03 Oct '12, 09:05

Doug's gravatar image

Doug ♦♦
10.2k122138
accept rate: 21%

Thanks for the response Doug. I don't know why I didn't think of trying that out to begin with.

I've got a new problem now though. The parameter names are being changed to all uppercase when saving pages in the monitor, and that is preventing the login from succeeding. Also, when I enter the page, I set it up as a POST with Follow Redirects checkd, but when I edit the entry, the method switches back to GET and the Follow Redirects checkbox gets unchecked. Looks like I'll have to file a bug report, but I gave you the answer since that does seem the way to go once these bugs are fixed.

Thanks!

(03 Oct '12, 13:07) wtranmer

That is a bug! We've posted a fix as 5.0.1.18

(03 Oct '12, 15:12) Doug ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79
×3

Asked: 02 Oct '12, 20:57

Seen: 5,072 times

Last updated: 03 Oct '12, 15:12