Forums
This topic is locked
Access denied - redirect.
Posted 22 Jun 2004 17:11:15
1
has voted
22 Jun 2004 17:11:15 James Wilkinson posted:
I am using DWMX, VBScript with ASP.My site is built using frames and I am adding log in access levels to diffent areas of the site.
If a user goes to a part of the site he does not have access to it redirects to the login page, but the log in page is a different frameset than all others, so how do i get it to open as the parent. see image
<img src="www.clearview-homemoving.co.uk/images/help.gif" border=0>
The restrict access code is:
<
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="user"
MM_authFailedURL="default.htm"
MM_grantAccess=false
If Session("MM_Username"

If (false Or CStr(Session("MM_UserAuthorization"


(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"

MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?"

MM_referrer = Request.ServerVariables("URL"

if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
>
How would i open the redirect as the parent?
thank you very much in advance for any help receieved.
James.
Replies
Replied 22 Jun 2004 17:53:54
22 Jun 2004 17:53:54 Wayne Hultum replied:
Have you tried putting target=_parent after the redirect URL?
I don't know if it works, but if you haven't tried it, it's got to be worth a try.
I don't know if it works, but if you haven't tried it, it's got to be worth a try.
Replied 22 Jun 2004 18:34:48
22 Jun 2004 18:34:48 James Wilkinson replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Have you tried putting target=_parent after the redirect URL?
I don't know if it works, but if you haven't tried it, it's got to be worth a try.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks for your reply.
I thought it might be that easy too, but unfortunately not. it then looks for a page called "default.asp%20target=_parent".
Have you tried putting target=_parent after the redirect URL?
I don't know if it works, but if you haven't tried it, it's got to be worth a try.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks for your reply.
I thought it might be that easy too, but unfortunately not. it then looks for a page called "default.asp%20target=_parent".