How do I use asp to protect framesets

I have a simple 2 page frameset that I am trying to protect using asp. I've
included the following code listed below at the top of each page including
the frameset page in an attempt to protect each page from unauthorized
access. When I open any of the pages in the frameset individually, I am
presented with the proper login page as expected, however if I open them
thru the frameset page, redirection to my login page does not occur. Any
help on this matter is greatly appreciated.

Advertisements

ASP doesn't know what a frameset is. You will need to use client-side
script to communicate between the individual frames in your frameset. (Or,
don't use a frameset. If you look around the web, you'll see that most of
us have managed to move away from them entirely.)

"Martin Franklin" <> wrote in message
news:#l$vwHb#...
> I have a simple 2 page frameset that I am trying to protect using asp.
I've
> included the following code listed below at the top of each page including
> the frameset page in an attempt to protect each page from unauthorized
> access. When I open any of the pages in the frameset individually, I am
> presented with the proper login page as expected, however if I open them
> thru the frameset page, redirection to my login page does not occur. Any
> help on this matter is greatly appreciated.
>
> <%Response.Buffer=TRUE%>
> <%IF session("okeydokey") = FALSE THEN Response.Redirect
> "../slog/login.asp"%>
>
>
> --
> Best Regards,
>
>
> Martin Franklin
>
>
> Asset Research Services, Inc.
> PO Box 7562
> Chandler, Arizona 85246
>
> Phone (800) 783-9636 or (480) 940-4290
> Extension 213
>
> Fax (888) 496-5736 or (480) 496-5735
>
> Web: WWW.AssetResearch.Com
>
>

Advertisements

Gazing into my crystal ball I observed "Martin Franklin"
<> writing in
news:#l$vwHb#:
> I have a simple 2 page frameset that I am trying to protect using asp.
> I've included the following code listed below at the top of each page
> including the frameset page in an attempt to protect each page from
> unauthorized access. When I open any of the pages in the frameset
> individually, I am presented with the proper login page as expected,
> however if I open them thru the frameset page, redirection to my login
> page does not occur. Any help on this matter is greatly appreciated.
>
><%Response.Buffer=TRUE%>
><%IF session("okeydokey") = FALSE THEN Response.Redirect
> "../slog/login.asp"%>
>
>

One of the many problems with Evil Frames
<http://www.apptools.com/rants/framesevil.php>.

Usually, there is no problem with framesets and redirection. Maybe something
with the coding of your frameset or with the ASP code.

S. L.

"Martin Franklin" <> wrote in message
news:%23l$vwHb%...
>I have a simple 2 page frameset that I am trying to protect using asp. I've
> included the following code listed below at the top of each page including
> the frameset page in an attempt to protect each page from unauthorized
> access. When I open any of the pages in the frameset individually, I am
> presented with the proper login page as expected, however if I open them
> thru the frameset page, redirection to my login page does not occur. Any
> help on this matter is greatly appreciated.
>
> <%Response.Buffer=TRUE%>
> <%IF session("okeydokey") = FALSE THEN Response.Redirect
> "../slog/login.asp"%>
>
>
> --
> Best Regards,
>
>
> Martin Franklin
>
>
> Asset Research Services, Inc.
> PO Box 7562
> Chandler, Arizona 85246
>
> Phone (800) 783-9636 or (480) 940-4290
> Extension 213
>
> Fax (888) 496-5736 or (480) 496-5735
>
> Web: WWW.AssetResearch.Com
>
>

"Adrienne" <> wrote in message
news:Xns95DDA724DAA1arbpenyahoocom@207.115.63.158...
>>
>>
>
> One of the many problems with Evil Frames
> <http://www.apptools.com/rants/framesevil.php>.
>
> Do you have a URL? I might be able to come up with some solutions.
>

That's what I like to see...

Not content with pointing out problem, but offering solutions too.

For my part, I'd say to the OP that it will take a bit of effort and
learning to figure out how to use CSS to control layout, but equally it will
take effort and learning to figure out how to bully the frames-based
application to work as intended. So it might be worth biting the bullet, and
'upgrading' now.

Gazing into my crystal ball I observed "CJM"
<> writing in
news:ueChcLl#:
> For my part, I'd say to the OP that it will take a bit of effort and
> learning to figure out how to use CSS to control layout, but equally it
> will take effort and learning to figure out how to bully the
> frames-based application to work as intended. So it might be worth
> biting the bullet, and 'upgrading' now.
>

Amazingly, I don't think I could write a good page without CSS now. I
can't wait for CSS-3 to really take off, newspaper like columns, and
other goodies.

Of course, the CSS is only as good as the markup. Use the right tool for
the job, a heading? Use a heading element. An address? Use the address
element. Want to emphasize a word, use the Em element.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!