Form authentication in a servlet and transfer the session cookie to browser in order avoid typing password
Is that possible to do the form authentication(protected by session cookie) in a servlet then transfer the session cookie on user's browser in order to let the user have a silent login?

I have no problem with the authentication part, after the servlet sending the HTTP POST authn request, the code gets the protected page with the session cookie. Then I used the response.setHeader to store the cookie on user's browser and redirect the browser to the protected page. But not as I expected, the browser saw the login form...  

Any idea ?
Form authentication in a servlet and transfer the session cookie to browser in order avoid typing password
===

Is that possible to do the form authentication(protected by session cookie) in a servlet then transfer the session cookie on user's browser in order to let the user have a silent login?

I have no problem with the authentication part, after the servlet sending the HTTP POST authn request, the code gets the protected page with the session cookie. Then I used the response.setHeader to store the cookie on user's browser and redirect the browser to the protected page. But not as I expected, the browser saw the login form...  

Any idea ?