The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Managing Users

I have spent some time trying to get user authentication going, based on Kevin Yank's article - "Managing users with PHP and MySQL".
I have the database tables going and the scripts seem to check usernames and passwords OK but, I am having to log on for every page - it does not seem to be parsing the sessions data properly.
The SID variable also seems to be empty - any ideas why ?????
Is there another way ????
session.use_trans_sid is set to 1 (presume this is enabled) on the .ini file, as is ;
register_globals - also on.
session.auto_start is set to off.
session.use_cookies is on
Appreciate any help.

When I point my browser to index.php, I get the "you are not logged on" message. I logon with correct uname and pwd, and it displays the page just fine. When I then try to go to points.php, I am asked to logon again - the session variables do not seem to carry onto the next page - can't figure out why.

maybe it comes from the way php was compiled? did you ./configure --enable-trans-sid [other options] ?
well that is you could try this if you're root on the server (and it runs Linux, otherwise it's not the problem I think).

You could aslo try to session_start() explicitely before trying to register your variables?
Try to check the path where you want to save your sessions too.

Session save path

session.save_path is /tmp
session.use_cookies is on

You could aslo try to session_start() explicitely before trying to register your variables? Huh?? Haven't I done that????

session.auto_start is off by the way (I'm not the root user of the server)
We have an installation of vBulletin which works a treat, so I can't see how config might be a problem - doesn't it use the same .ini if it's in our domain???
And if SID does not have a value, where is the session id??

An interesting note.

The problem I have is not with the variables, it is with the config.
The answer can be found on [this] forum.
I need to register session variables as globals first for them to be available across multiple pages.