You can't. This is something you should take care of on server side.
Use session to store user's state, or store it in DB.


On Tue, Aug 26, 2014 at 11:36 PM, Fotis Gioulekas <gioule...@gmail.com>
wrote:

> Hello to everybody,
>
> I have built a quiz that randomlycreates questions.
> Each time a user submits it's answer, the app redirects to another
> question.
> When the user does not want to continue to another question it presses a
> button "exit quiz" and the app redirects to another url.
> When the user presses the browser's back button, it can return back to the
> quiz.
> How can I prevent this?
> Is there a solution that either closes the browser's tab or redirects to a
> default html page when the user presses the back broswer's button or
>
> My app does not requires user registratrion and login.
>
> Thank you in advance,
> Fotios
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to