cmc-csci040 icon indicating copy to clipboard operation
cmc-csci040 copied to clipboard

Rendering 'base.html'

Open m1keh0uk opened this issue 7 months ago • 1 comments

When a user clicks 'logout', I'm able to delete cookies and set is_logged_in = False, but the base.html doesn't update (It still has the logout tab visible). Only if I navigate to another tab or refresh the page does the base.html update. What's the best way to get the base.html to update while staying on the page or not refreshing? Is the only way to redirect the user to the homepage/any other page after logging out?

m1keh0uk avatar May 09 '25 03:05 m1keh0uk

Yes, doing a redirect here is the best option.

mikeizbicki avatar May 09 '25 04:05 mikeizbicki