Hey Michel,

:: The problem is that if I�m 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 or
not. Instead, you've simply made a contract with your login system to always
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



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to