Jump to content

Archived

This topic is now archived and is closed to further replies.

jwk811

question about user accounts on websites

Recommended Posts

say if someone logs in and then goes to a few other pages.. what do you use to know that they already logged in and how do you know what username their under on the other pages so you can use it for something? i dont know how web sites do that.. and how will you make sure no one else can see those pages unless they're logged in under that username or any username i guess?

Share this post


Link to post
Share on other sites
Take a look at the tutorials here on phpfreaks. It's a good start and should get you going in the right direction.

[url=http://www.phpfreaks.com/tutorial_cat/7/Membership-Systems.php]http://www.phpfreaks.com/tutorial_cat/7/Membership-Systems.php[/url]

Share this post


Link to post
Share on other sites
so you just neeed to check for a variable on every page and if there is none send them to a log in script? once the user logs in how can you know on all the other pages that its that person?

Share this post


Link to post
Share on other sites
you use a Sessoin, This give a unique footprint to everyone that vistsis your site. Sessions are availible across every page on your site.

http://uk2.php.net/session_start

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.