---
title: "Discussion on \"DevLog #6: Session Management in Java: HttpSession vs. Cookies\" | Hashnode"
description: "Discussion on \"DevLog #6: Session Management in Java: HttpSession vs. Cookies\". How to maintain state across multiple requests and servlets using HttpSession and client-side Cookies, with concrete code examples."
url: "https://hashnode.com/posts/devlog-6-java-session-management-http-session-cookies/6a4916b9533703038959aebc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DevLog #6: Session Management in Java: HttpSession vs. Cookies](https://pujajorwar.hashnode.dev/devlog-6-java-session-management-http-session-cookies?utm_source=hashnode&utm_medium=feed)

How to maintain state across multiple requests and servlets using HttpSession and client-side Cookies, with concrete code examples.

Jul 4 · 6 min read · pujajorwar.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#session-management](https://hashnode.com/tag/session-management)
-   [#cookies](https://hashnode.com/tag/cookies)
-   [#servlet](https://hashnode.com/tag/servlet)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#backend](https://hashnode.com/tag/backend)
-   [#series](https://hashnode.com/tag/series)
-   [#begginers](https://hashnode.com/tag/begginers)

## Written by

[Puja Jorwar](https://hashnode.com/@pujajorwar)

@pujajorwar · Pune, India

  
[View profile](https://hashnode.com/@pujajorwar)

Full-Stack Developer & Data Analyst | DSA & Tech Writer | Open to Work

Full-Stack Developer &amp; Data Analyst | DSA &amp; Tech Writer | Open to Work I write about: → DSA problems — explained simply with dry runs &amp; code → Full-Stack Development (React, Next.js, Node.js) → Data Analysis (Python, SQL, Power BI) I believe in understanding over memorising. Every blog I write is explained the way I wish someone had explained it to me. Portfolio: https://portfolio-puja-jorwar.vercel.app/ GitHub: https://github.com/Puja-Jorwar Twitter: https://x.com/PujaJorwar LinkedIn: https://www.linkedin.com/in/puja-jorwar

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
