And while we are at it; a related question. If I want to send a template, like a header/menu thing, to all my other templates, how can I do that so I don't have to do it in every GET/POST?
On May 12, 4:47 pm, Oskar <[email protected]> wrote: > To be clear; every user has his/her own password and username. > > On May 12, 4:42 pm, Oskar <[email protected]> wrote: > > > Hey! > > > I would like to require users to be logged in to access any page > > (except one login page) on my site. But checking the session object in > > every GET/POST function seems like the wrong way to do it. > > > Is there anyway I can put some code somewhere that gets executed no > > matter what page the user visits? Ideally I would like to send them to > > this one login page if they are not logged in. > > > -- > > You received this message because you are subscribed to the Google Groups > > "web.py" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/webpy?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/webpy?hl=en. -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
