close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

user_Registration.php

Thread began 10/01/2009 11:22 pm by adrian358038 | Last modified 10/13/2009 4:21 pm by Eric Mittman | 3858 views | 12 replies |

adrian358038

user_Registration.php

Hi All

PowerStore 2

when a new user registers for the first time and completes the Email Address:, Create Password: and Confirm Password then clicks the Register button they are directed to a page titled "Enter your login information" where they have to once again enter their email address and password then log in.

I would prefer to have them directed straight to their profile page after the user_registration form has been submitted.

Hope you can once again help and save my but.

Sign in to reply to this post

Eric Mittman

Are you using the user registration page for the user registration full page? Both of these should redirect to the profile page after a successful registration. On the profile page is an access check to determine if the user is logged in. If the user is not then they will be redirected to the login page. This access rule is based on the presence of the following two session variables:

$_SESSION['UserEmail']
$_SESSION['UserID']

When you register and are taken to the login page what is in the URL bar? Are you able to login with the user after registering? Please post back with this info and also any other details you can think of.

Sign in to reply to this post

adrian358038

Hi Eric

for an example of what the user_Registration is doing go to : users_Registration.php and check out how it reacts when you register. I haven't modified this part of the website very much so it's really how it came out of the box.

Sign in to reply to this post

adrian358038

I am using the user_Registration.php page but it is being redirected to the log in page. the url bar at the login page is: users_LogIn.php?accesscheck=%2Fusers_Profile.php - see image attached

yes once you are at the login page you are able to login but my client would prefer to have the members directed straight to their profile page and not have to log in for a second time. can this be done?

Sign in to reply to this post

Eric Mittman

On this page when the user registers it should do the insert, then set some session variables, then redirect the user to the profile page.

In your page what you do have for line 91, it looks like this:

$WA_redirectURL = "";

If you have the profile page specified here that is likely the problem. Since the script is designed to go to the profile page automatically after they are registered adding it into this line causes it to go to the page prematurely before the proper session variables are set.

To confirm the results you are getting and the status of the variables that should be set please add this code to the login page just above the text fields in code view:

php:
var_dump($_SESSION);



This will let you know what session variables are set when the user comes to this page. Please post back with what you get.

Sign in to reply to this post

adrian358038

Hi Eric

the user_Registration page line 91 is: $WA_redirectURL = ""; as you said it should be so doesn't look like a problem there.

In the users_Login.php page I inserted the code: <?php var_dump($_SESSION); ?> on line 260 just above: <h1>Enter your login information</h1> as you asked and get the result:

array(0) { }

not quite sure what this is telling me so you may have to guide me through please.

Sign in to reply to this post

Eric Mittman

The var dump function should give you all the information about a variable or data value. In this case when you pass the session object to this function it should print out all of the session variables that are set. The reason I'm wanting to see these values is because it is these session variables that are used by the access rules to restrict the content.

Based on what you got either the session variables are not set at this point or the session has not been started. Please add in this one line just before this var_dump function to ensure that the session is started:

php:
if(!session_id()) session_start();



Please add this into the page just above the other var dump code and test again to see if the result changes. If needed I will open a ticket for this so we can exchange some files privately.

Sign in to reply to this post

adrian358038

Thanks Eric

I will do ASAP and get back to you with some results.

A new problem has been raised this morning, I went to the about page and google maps is acting very strange, it gives me directions to somewhere in USA??????

I have replaced the AboutUs.php file, google_javascript Folder and got a new API key from google but it still loads directions from Aus to USA???

you can check it out at AboutUs.php

really strange??

Any suggestions?

Sign in to reply to this post

Eric Mittman

This is definitely a strange result that you are getting. In the normal directions what is the starting point and where does this info come from?

Sign in to reply to this post

adrian358038

No idea mate ... not sure what to do about it either.
I may consider trashing the site and starting again with a backed up version.
Will have to do on the week end so not to disrupt the site too much during working hours.

First priority is the log in problem ..... got to love this learning curve.

Any suggestions are welcome, thanks.

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