close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

No record found.

Thread began 11/04/2009 8:05 pm by cj381970 | Last modified 11/06/2009 12:50 pm by Jason Byrnes | 1932 views | 7 replies |

cj381970

No record found.

I am having some trouble with my log-in process, hopefully someone can help me out.

The first time a user logs in (and sets the session id), the next page with user information displays: No record found.
If the user then logs out and logs back in the correct user data is displayed. I'm confused on how to fix this.Thanks in advance.

The pages are:
visitors_login.php
members__Profile.php
(test@user.com
pass)

Sign in to reply to this post

anonymous

cj,

I just tested your login form and it appears to work fine from my end. Upon, hitting login, it takes me straight to the "My Profile" page displaying the email and the option to edit registered numbers.

Perhaps, because you have been developing it, maybe you need to delete the cache on your machine to get an accurate representation of what is happening, but it all looks good from my end (very nice site, too).

I am using Firefox 3.5.4 on Mac OSX 10.6.1. Not sure what other setups you have tested on, although, I doubt the kind of issue you were referring to would be browser specific.

Regards,

Brian

Sign in to reply to this post

cj381970

No record found.

Hi Brian,

Thank you for checking out my issue. The login does seem to work fine from the log in page (visitors_login.php), however I have a problem with the same form elsewhere in the site. For example, if you try to log in by clicking 'Members' at: www.alofonia.com/ The page:members_Profile.php will display: "No record found."
This only happens the first time, if you log in a second time, the user data is displayed correctly. It seems that I am missing a session_start somewhere, but I believe I have added that code properly to all the pages.

Thanks again, your help here is greatly appreciated!
CJ

Sign in to reply to this post

Jason ByrnesWebAssist

I am also not able to reproduce the problem.

I went to :
visitors_Registration.php

and registered a new user, then went to:
visitors_login.php


when logged in, I was brought to:
members_Profile.php


showing the email address I used to register.

Sign in to reply to this post

cj381970

No record found.

To reproduce the problem go to: www.alofonia.com/
Clear the cookies in your browser.
Click on Members and login from the drop-down.

Thank you,
CJ

Sign in to reply to this post

Jason ByrnesWebAssist

I cant reproduce by logging in at :
www.alofonia.com/

but I can reproduce by logging in at:
alofonia.com/




This is to be expected ans is the way sessions work.

The session ID is tied to a cookie that is created on the clients machine. Cookies are domain specific.

To a cookie, the domain "www.alofonia.com" is not the same as "alofonia.com" so a different session cookie, tied to a different session ID is created for each one.


You should redirect users who come to p[age using the domain "alofonia.com" to "www.alofonia.com"

Sign in to reply to this post

cj381970

No record found.

That's what I was missing! Thanks for your help once again Jason.

Regards,
CJ

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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