Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

flask session is expiring when i am redirection to a another server domain how to keep the session alive

$
0
0
def generate_url():    if request.method == "POST":        try:            session.permanent = True            review_payment.permanent_session_lifetime = timedelta(minutes=30)

i am generating an url in this function and redirecting to that url to perform some specific task when i am again coming back to my domain i am not able to access my session its empty i want to keep it alive

session.permanent = Truereview_payment.permanent_session_lifetime = timedelta(minutes=30)

tried this but not geting


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>