Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

authentication and session in Java

I would like to know if it is possible to maintain an authentication (like a session with login and password in php) on a website from a java program, and if anyone had any lead on the subject or some reading for me, that would be great.

thanks

like image 551
Sephy Avatar asked Jul 03 '26 06:07

Sephy


1 Answers

You can use the HttpClient class. Once you have authenticated with the website the server will send you a cookie that you have to send with each successive request in order for the server to think that you are logged in.

like image 152
Klaus Byskov Pedersen Avatar answered Jul 05 '26 20:07

Klaus Byskov Pedersen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!