Hi,
I've got a flowscript like this:
// This function is called from sitemap when a protected resource is
requested
function requestProtectedResource(){
var protectedResource = cocoon.parameters["protected-resource"];
if(loggedin){
displayProtectedResource(protectedResource); // display the
protected page
}
else{
cocoon.sendPage("login"); // redirect to the loginpage
}
}
My problem:
For example:
- login-page: /login
- protected-pages: /protected/*
If a person (who isn't logged-in) attempts to view a protected page,
lets say "/protected/secrets", then he is redirected to the login -page.
The path in the location-bar (the bar in your browser, where the uri is
displayed) is "/protected/secrets", but I want the path to be "/login".
How can I achieve this "behaviour?
Thanks
Jonny
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]