close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Desperate! "Too many redirects occurred" error

Thread began 8/06/2009 4:19 am by michellem310468 | Last modified 8/06/2009 9:42 am by Jason Byrnes | 3883 views | 1 replies |

michellem310468

Desperate! "Too many redirects occurred" error

I have 2 pages that use WA_Auth_RestrictAccess. When logged in, everything seems to work as it should. However if logged out, instead of redirecting to users_LogIn.php, the page fails to load and posts the following error:

"Too many redirects occurred trying to open “. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page."

The url temporarily gets an access check var appended: index.php?accesscheck=%2Fevents%2F2009%2F259%2Findex.php

Code at top of page is:
<?php require_once('../../../Connections/AGCI.php'); ?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!isset($_SESSION)) {
session_start();
}
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("index.php");
}?>


The second page with the same problem is at:
users_Registration.php


I'm desperate to fix this -- if any one could provide a solution it would be much, MUCH appreciated!

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

It looks like you have applied the access restriction to the index.php page as well:

<?php
if (!isset($_SESSION)) {
session_start();
}
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("index.php");
}?>

This code is set to redirect to the index.php page if not logged in, if you apply this to the index.php page, you will end up with the endless loop you are describing.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...