I need to create authorization script. Cookies must be saved and used later to access the page without authorization. Can anyone give me work example?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, you have to do an initial request to get the cookies from the server. In the response, you will save the cookies the server sends in the response header
Set-Cookie. Where you store them is up to you. I just added them to a session.Now that you have the cookies stored, on your next request you can add them to the request.
If you have questions or need me to elaborate on anything, just let me know.