470,848 Members | 1,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Multiple login without db

I'm newbie. Just wonder, after googling for several hours: is it impossible
to make a login script for, say, three different users and, after
successfull login with username and password, redirect them to their
destination (totally three destinations, but only one for each user),
without any MySql? And at the same time add som security (session or so).
Any idea?
May 10 '06 #1
2 1335
>I'm newbie. Just wonder, after googling for several hours: is it impossible
to make a login script for, say, three different users and, after
successfull login with username and password, redirect them to their
destination (totally three destinations, but only one for each user),
without any MySql? And at the same time add som security (session or so).
Any idea?


You don't HAVE to use a database for 3 users. You can hardcode the
3 usernames, passwords, and destinations into the script.

Gordon L. Burditt
May 10 '06 #2
On Tue, 09 May 2006 06:12:39 +0000, Gordon Burditt wrote:
I'm newbie. Just wonder, after googling for several hours: is it
impossible to make a login script for, say, three different users and,
after successfull login with username and password, redirect them to
their destination (totally three destinations, but only one for each
user), without any MySql? And at the same time add som security (session
or so). Any idea?


You don't HAVE to use a database for 3 users. You can hardcode the 3
usernames, passwords, and destinations into the script.


To the OP:

Or use sqlite (if you're using PHP 5) or use flat comma separated files
and fgetcsv (or custom parsing if you don't want to use CSV files). You
could use an LDAP system. You could store the authenticated users in an
email inbox and read the emails using IMAP/POP3 then parse them (although
I'm now getting a bit silly).

There really is any great number of options, MySQL is a good/great
solution but far from the only one - the ways of storing the information
you need is only limited by your imagination.

Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

May 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nick Zdunic | last post: by
2 posts views Thread by James X. Li | last post: by
3 posts views Thread by dgator | last post: by
9 posts views Thread by Graham | last post: by
reply views Thread by melton9 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.