close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Keeps redirecting to login page

Thread began 8/14/2010 12:04 pm by biesheuvel378713 | Last modified 8/19/2010 7:02 am by Jason Byrnes | 1222 views | 3 replies |

biesheuvel378713

Keeps redirecting to login page

I've setup a simple test site. I've created an acces rule called "admin" with a value of three.

The test.php page can only be accessed as an admin. When I click the link to test.php it redirects to the login page.

After I log in the login page redirects to test.php but again test.php redirects to log-in page.

I've checked the files and the admin rule exists, I know I must be doing something wrong but I don't know where because I did it exactly as in the video.

Would you please take a look at it, many thanks in advance

Attached Files
sa.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your access rule uses the $_SESSION['groupid'] variable, so the first thing I would want to know for troubleshooting, is what is the value being stored in the groupid variable on login.

to find this out, add the following code to the login page after the login form:

php:
<pre><?php if(!session_id()) session_start(); ?><?php var_dump($_SESSION); ?></pre>



post back the results of this code after trying to login, this will help us begin to troubleshoot the problem.

Sign in to reply to this post

biesheuvel378713

I've tested this site the next day and it worked. Now as it turns out I run my testserver on IIS. The strange thing is that it kept keeping changing the file permissions so Dreamweaver couldn't copy the right files onto the testing server. I discovered this by accident. I've set up some new testing sites just to test if I could reproduce this error but all went well. Then with using digital file pro I ran into trouble again. IIS keeps changing the user permissions at random. I'm happy that my production server is a VPS running on Linux and Apache.

Thanks for looking into this..

Sign in to reply to this post

Jason ByrnesWebAssist

Hmmm, that's strange that the IIS server keeps changing the file permissions, may try uninstalling IIS on your local computer and reinstalling it will fix the issue?

Glad to hear it is working on the remote host.

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...