You need to work out what how your application maitains its session.
- Login via your browser
- Request the verification URL you have chosen in your browser
This should work.
You can then replay the request for the verification URL in ZAP removing and cookies or headers that you think are used for maintaining the session one at a time.
If the request fails then you know that cookie or header is used for session management.
You then need to work out which responses contain these cookies and/or headers.
If it is just one response then that is the one you need to return from the authentication script.
If they are returned across multiple repsponse then you will need to collect them yourself.
You will also probably need to create a custom script for session management.
Does that make sense?
Cheers,
Simon