Jump to content


Photo

question about user accounts on websites


  • Please log in to reply
3 replies to this topic

#1 jwk811

jwk811
  • Members
  • PipPipPip
  • Advanced Member
  • 714 posts

Posted 26 October 2006 - 07:27 PM

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?

#2 freakus_maximus

freakus_maximus
  • Members
  • PipPipPip
  • Advanced Member
  • 177 posts

Posted 26 October 2006 - 08:28 PM

Take a look at the tutorials here on phpfreaks. It's a good start and should get you going in the right direction.

http://www.phpfreaks...hip-Systems.php

#3 jwk811

jwk811
  • Members
  • PipPipPip
  • Advanced Member
  • 714 posts

Posted 28 October 2006 - 12:01 AM

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?

#4 tobydeh

tobydeh
  • New Members
  • Pip
  • Newbie
  • 7 posts
  • LocationLondon -UK

Posted 28 October 2006 - 12:17 AM

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
There are many ways to skin a cat!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users