close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Logging in returns me to Log In page

Thread began 5/30/2011 11:11 pm by jen425288 | Last modified 6/03/2011 6:42 am by Jason Byrnes | 2812 views | 11 replies |

jen425288

Logging in returns me to Log In page

I am at the testing stage and everything looked good until I decided to start over. I thought I had deleted every trace of SA from the site but perhaps I missed something.
Anyway, now when I log in I just get returned to the Log in Page. I will attach my Log In page here, and also a screenshot of my Authenticate User server behaviour because I get the idea it might be implicated.
I checked in phpMyAdmin and I am using the correct email address and password to log in.
Thanks for your help.

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

CraigRBeta Tester

your successRedirect on line 14 is empty.

Sign in to reply to this post

jen425288

Thanks!
I'm not a programmer and tend to rely too much on Wizards for stuff like this, but am I right in remembering that in the Wizard the line underneath that field said something like "Return to previous page" with a checkbox? I guessed that the user would be returned to the page they had come from, if I left it empty, and checked that box. Which is desirable, yes?
So what should I put in that empty successRedirect, if I want the user to land back on the page they were trying to access??
I have tried putting various other paths in that field, but all of them return the Log In page. Is there something else wrong?

Sign in to reply to this post

CraigRBeta Tester

In Dreamweaver, you can go to the server behaviors panel and open the SecurityAssist Authenticate User behavior, which gives you the interface again.

Attached is in image of one of my typical setups.

If a user tries to access a page which is restricted, they are redirected to the login page, which, on success, will go to the restricted url.

If the user clicks on the login link, once logged in successfully, they are directed to a landing page called myaccount, which gives them access to account specific information.

In the case of failure, the user is directed to the email password page.

Sign in to reply to this post

jen425288

OK, thanks.
I don't want users being able to update their own profile as that's where the admin goes to update user levels etc.
But just to try and get the page working, I put that page in the "If log-in succeeds" box. But when I log in (as an administrator) I still get returned to the log in page.
I have zipped my amended LogIn page and attached it again, in case you can see anything else wrong. I'm a bit worried about using the email address instead of username to log in with - have I done this OK?
And how about Authenticate Users step 2 of 3 (thumbnail below)?

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

jen425288

And, while I'm at it, step 3 (thumbnail below)?

Sign in to reply to this post

Jason ByrnesWebAssist

the first thing I would suspect is that there is an issue on the server preventing sessions from being maintained.

test the servers session management using the sessionTest.php page from the following thread:
showpost.php?p=23826&postcount=2

if the session test fails, you will need to contact the host to have them correct the problem, it is most likely an issue with the session.save_path in the php.ini file.

If the session test passes, the try adding the following code to the login page, after the body tag to help troubleshoot:

php:
<pre><?php var_dump($_SESSION); ?></pre>




this will write the session contents to the page to help troubleshoot.

post back the session contents after trying to login and a copy of the visitors_Profile.php page and the WA_SecurityAssist/HelperGroupRules_PHP.php file.

Sign in to reply to this post

CraigRBeta Tester

thanks for following this up Jason

Sign in to reply to this post

jen425288

The session test passed so I added that code to the log-in page. When I tried to log in, I got the following:
array(2) {
["test"]=>
string(4) "test"
["VisitorID"]=>
string(1) "4"
}

btw, I am still testing this on localhost on my own machine.
I have attached the files you requested.
Thanks.

Attached Files
HelperGroupsRulesPHP.zip
visitors_Profile.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the rule applied to the profile page is the Administrator rule.


the Administrator rule is set to compare the userLevel session variable to a value of 1.

you can see from the session dump:
array(2) {
["test"]=>
string(4) "test"
["VisitorID"]=>
string(1) "4"
}


that there is no userlevel session being set.

you need to edit the authenticate user behavior, on the third step, click the plus button and select the userLevel column to have the userLevel session set at login.

Sign in to reply to this post
loading

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