Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login scripts: How to serve information based on user?

Status
Not open for further replies.

MMage

Programmer
Apr 29, 2002
15
US
I could use some guidance with login scripts. I know what I'm trying to do is straight forward but I've been having trouble finding example code or guides to work off of.

What I'm trying to do is have a login for my site so that once someone is logged in they can only retreive their own information from a database.

For example if I log in I should only be able to retreive records that I added to the database.

I experimented with apache's built in authentication, but as far as I can tell it just restricts an area and doesn't have any way for a perl script to take an action based on who logged in.

Any suggestions would be appreciated. I'm stumped as where to go from here.
 
CGI::Session would be worth having a look at. The session key is stored in a cookie, and that's used to look up other information such as username, password hashes, directories etc etc

The documentation is pretty good, from what I've seen of it, and it comes well recommended

HTH
--Paul

Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thank You very much. This is exactly what I was looking for.

You guys are awesome. I try not to ask a question here unless I'm at wits end, but ever time I do you always help me out. ^^

One day I'll know this stuff as well as you guys do ^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top