in a django app, no signal generated when a session becomes invalid due to timeout
If I want to redirect my client to the login page after the session times out, is it a bad idea to have client side javascript function that periodically checks if it still has valid session? I don't see any other way, but I am totally new to web programming.
In a nutshell no. Repeatedly polling the website would keep the session alive. Its a waste of bandwidth and overcomplicates things. The session is a server object so should be delt with there. I would recomend just checking on the pageload.