Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Restrict access to page/ Templates

Posted 24 Mar 2005 18:53:15
1
has voted
24 Mar 2005 18:53:15 Christian Sen posted:
Hi there!

I have a question regarding restricted access to a page based on templates.
I have always used this one the top of every page I wish to secure:


Response.Expires=-1000
Response.CacheControl="no-cache"


-and everything has been working perfectly until I decided to convert my page
into templates. When I add this piece of code on the top of the templatepage I only get errors.
Restrict access to page in DW has never worked for me, don't know why. When you hit the
backbutton in DW after logging out, you get right in to the good stuff again, just like that.
That's why I started to use the code mentioned above.


Does anyone know of any other way to secure a page (template based) so that you actually have
to log in again after logging out in order to acces the page?

Regards, Christian
<font color=red></font id=red>

-how would I manage without these forums...

Edited by - Sarre on 24 Mar 2005 18:54:03

Replies

Replied 27 Mar 2005 00:43:59
27 Mar 2005 00:43:59 Matt Bailey replied:
I've never used DW templates, or the code you mention. However, when I want to restrict access to a page I use sessions (or you could use cookies).

There's a great suite of behaviours called PHP Login Suite. Have a look and see if it's something that might be useful:

www.dmxzone.com/showDetail.asp?TypeId=6&NewsId=8479

It costs about £20, but it's well worth it - I use it all the time.

___________________________________
* Sorry... how do you do that again?... *
Replied 27 Mar 2005 20:55:26
27 Mar 2005 20:55:26 Christian Sen replied:


Don't really know how to use PHP, I use ASP for my pages.
Either way I'm gonna check out your tip on this one, might learn something new <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Thank you Matt!
Replied 28 Mar 2005 04:32:12
28 Mar 2005 04:32:12 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>... everything has been working perfectly until I decided to convert my page into templates. When I add this piece of code on the top of the templatepage I only get errors. Restrict access to page in DW has never worked for me, don't know why. When you hit the backbutton in DW after logging out, you get right in to the good stuff again, just like that.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
It sounds like the proper restriction code wasn't being place properly at the top of your page(s). The first line should be the include/require'd file that's your <i>Connection</i>. Then immediately below that should be the chunk of code that's the <i>Restrict Page Access</i> Server-Behavior. Then any additional ASP/PHP code should follow that, then HTML header code, then HTML body, then under the HTML should be the closing ASP/PHP code (if database interaction is on the page).

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Reply to this topic