Session handling fix: session update if not ajax