Forums
This topic is locked
forms authentication in frameset?
Posted 09 Apr 2008 12:13:52
1
has voted
09 Apr 2008 12:13:52 coles coles posted:
hi guys~~i've set authentication on my page.It's working but not in the page that have frameset. is it possible to set authentication to page with frameset?
the code for the page is
<%
If session ("Authenticated"= 0 then
Response.Write("<script language=""javascript"">alert('Please log in!');</script>"
Response.Write("<script language=""javascript"">window.location='login.asp';</script>"
end if
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>View Candidate</TITLE>
</HEAD>
<frameset rows="38%,*" border=0>
<frame src="Search.htm">
<frame src="ListAllCandidate.asp" name="show">
</frameset>
</HTML>
even though i hv login it still redirect to login.asp..
then i try to remove the if statement and do it in search.htm and ListAllCandidate.asp but still not working properly..
in which part did i make wrong??
help me~