Reload Django sessions

Hi everyone, is it possible to reload the django session without refreshing the page.
i am using htmx to add items to cart and i want to refresh the session each time an item is successfully added to the cart Note i am using sessions for my cart

I’m not sure I’m following what you’re asking for here.

The Django session data is stored in the server (unless you’re using “cookie-based sessions” which I never recommend).

When the browser sends a request (GET or POST, page or AJAX), the view that gets called can update the session from the data submitted in the request.

That view can then return a response containing data from the session.

So I’m not sure what you’re asking for when you say “reload the session” or “refresh the session”.