import streamlit as st
before the user see the “hello”, I want to get the identity of vistors, I want to check the cookies of users, if viste is invalid, users have redirect to a login check page to login, after login success, users will return to current page.
In ASP language, I have a solution to share with you.
if len(request.cookies(“portcookie”))<1 then
response.direct(“current page url”)
response.write(“welcome a viste this page”)
how can we achieve this function in streamlit app with python?