> Can anyone explain how i can create a registration and login page
> using PHP that doesnt use databases, sessions, or cookies?
One possible way would be to dispense with PHP and computers and
the Internet entirely, and hire grad students.
> Is there a tutorial someone can point me to or could anyone tell
> me the method. Thanks
You need to store information about registered users *somewhere*.
A database provides protection against data getting clobbered when,
say, two new users sign up at the exact same time. You could use
a flat file for this, with sufficient locking against simultaneous
updates of a flat file. If you don't understand why this is
necessary, or how to do it, you're going to get it wrong. It might
be wrong too if your OS gets it wrong. Since you asked the question
above, you're probably going to get it wrong if you try to do it
yourself. No, that's not intended as an insult. Even the pros get
it wrong sometimes.
Where do you intend to keep the information on registered users?
Unless you intend to have the session end when you click on the
login page, or requiring entering login information on *EVERY* page,
you need to be able to track which page goes with which session
somehow. Otherwise, two sessions logged in as the same user will
interfere with each other. PHP provides a way to do sessions without
cookies (a variable is added to each URL - see the PHP configuration
variable session.use_trans_sid) - but that's still sessions. This
tends to be a security hole. It appears in the browser address
bar. A user cutting and pasting a URL and posting it or sending
it to someone may give away access to their account, or cause two
users with the same session ID to interfere with each other in odd
ways (such as, for example, paying for someone else's airline
ticket with your credit card).
You could use Apache's "plain" authentication. This involves: (a)
the browser will pop up a request for a username and password when
you navigate to a protected page, and you have no control whatever
over what it looks like, (b) the browser caches this information
so the user doesn't have to enter it on every page, and (c) there
is NO "logout" function. This option is so popular I've never seen
it used on any web site actually intended for viewing by the public
(as opposed to a test site used for learning.) This doesn't solve the
problem that two users logged in with the same user name interfere
with each other. ISPs often provide this method (it comes free with
Apache), but users are normally responsible for their own web design or
have to hire someone to do it for them.