i have created an app which is working before i added the code for session expiration.
# ########################################################### # ## session expiration # ########################################################### t0 = time.time() if session.authorized: if session.last_time and session.last_time < t0 - EXPIRATION: session.flash = T('session expired') session.authorized = False else: session.last_time = t0 if not session.authorized and not request.function == 'index': redirect(URL(r=request,f='index')) ########################################################### with out this code it was working fine. now the browser showing "The page cannot be displayed". may i know why it is not redirecting to 'index' ? is there anything wrong in my code? thanks durga --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---