From: Greg M. <gmc...@th...> - 2004-06-22 18:17:24
|
Hey Michel, :: The problem is that if I=B4m in some restrict page, i go to login page :: and have a general congratulation message, rather i want to go back to :: the restrict page when the user make the login... Hmmm. Is there some reason to ever have an individual 'congratulations' page? You might consider indicating a successful login by having a small message on your pages that indicates whether the user is logged in or not= , perhaps by displaying their login name: "Welcome, DaffyDuck!" if they're logged in, and "Sign in" if they're not. That way you could *always* pass the 'restricted' page to the login page = and always return your user there (or anywhere you wanted depending on the referring page). :: I think to pass a request variable to the login page, this request :: variable tells from what page the login was requested, if there is no :: request variable, the login was called directly from the FomLogin. See, if you always passed the referring URL and always returned your user= to that page (or some page based on it, maybe some dictionary of "referringPage: destinationPage" mappings if needed), you would never get into this other if-then issue of whether your request variable is there o= r not. Instead, you've simply made a contract with your login system to alw= ays supply that variable no matter what. :: Is there something done in this area? I haven't seen anything. I'm rolling my own stuff in this area. I think everyone is, so far. But I'm trying to come up with something that plugs = in. Peace, Greg |