jwk811 Posted October 26, 2006 Share Posted October 26, 2006 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? Quote Link to comment Share on other sites More sharing options...
freakus_maximus Posted October 26, 2006 Share Posted October 26, 2006 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] Quote Link to comment Share on other sites More sharing options...
jwk811 Posted October 28, 2006 Author Share Posted October 28, 2006 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? Quote Link to comment Share on other sites More sharing options...
tobydeh Posted October 28, 2006 Share Posted October 28, 2006 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.