That sounds like you want to return some HTML with some Javascript that
will display the message and perform the redirect. For example,
something like this:
<html><head><title>Redirecting...</title>
<script type="text/javascript">
setTimeout(5000, "document.location = '/login'");
</script>
</head>
<body>
You are not authorized to view this page. Redirecting you to a login
page... <a href="/login">Click here</a> if you are not redirected
automatically.
</body></html>
That said, I'd personally forego the redirect HTML page as it requires
your client to understand Javascript. While most clients handle
javascript, all clients should handle the HTTP 303 status and redirect
properly. It is also easier to test (IMO) because you can verify the
response is a 303 vs. parsing the HTML for some javascript or text.
HTH,
Eric
>
> ---G.GaneshPandi---
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cherrypy-users" group.
> To post to this group, send email to
cherryp...@googlegroups.com.
> To unsubscribe from this group, send email to
>
cherrypy-user...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/
> cherrypy-users?hl=en.