Can we use only HttpResponse object to keep all session management between server and device?
Can we use only HttpResponse object to keep all session management between server and
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.
I’m not sure if that would work as the session id needs to be sent back to the server from the device (the client) upon subsequent communications. You would get the session ID from the server upon the initial communication (login?) and this would be passed back to the device in the HttpResponse in the form of JSON, XML, Etc. Then, you’ll want to pass that session ID to the server with all your HTTP requests. This can be done in the header of the response. You can have the server check that the session is still alive and respond with an error code if it is not.