Perl website login and session


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl website login and session
# 1  
Old 01-11-2008
Perl website login and session

Hi,

I'm currently working on a perl website, and I would need a system where a few users can login into the administration side of the site. about 5-10 users maximum, all pretty simple.
I was thinking of using an .htaccess file and a seperate admin folder on the server. I'm wondering if there is any way to use the username someone entered in the perl scripts on the admin pages. (for example, to put a "logged in as:" field on the webpage somewhere). Maybe there is a variable or something I can use.

I'm also wondering what my other options are in this matter, for instance, making an actual login page, how would this work? can I make a users table in a database then (with password encryption).. I'd like it to be secure.

Any help is welcome, this is a good learning experience.
# 2  
Old 01-11-2008
The variables are present in a POST or GET hash table, depending on your form method, usually POST. The key is the name you supplied in the name field in the html input tag and the value is the value the user entered.

perl.com: Beginners Intro to Perl - Part 4

You can then lookup the usernames and passwords in a database and match the CGI supplied and the database retrieved values.

perl.com: Database Programming with Perl
# 3  
Old 01-14-2008
you may make use of CGI::Session to maintain a session
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Login and logout time of a session

Hi, How can I find out the login and logout time of the old UNIX session/user?. (2 Replies)
Discussion started by: sharif
2 Replies

2. Shell Programming and Scripting

Need to track what Commands run in a login session

Hi I need to track what commands run in login session in solaris whether it is root or any normal users in bash shell. My actual requirement is that when a user (nomal/root) login into the system, whatever commands he run, it should log into file on specified path . I don't require command... (4 Replies)
Discussion started by: hb00
4 Replies

3. Shell Programming and Scripting

Determining if session is a login session

Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies

4. Shell Programming and Scripting

Record login session...

How to record my login session in a file named session.lst? (1 Reply)
Discussion started by: anupdas
1 Replies

5. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

6. UNIX for Dummies Questions & Answers

Need a Help Please- Login a reflectionX session but what you type is not what you get

Im having a problem using unix program client ReflectionX. as soon as i login to one session i type to change to any directory or type something but the problem is that what i type in is not what you get. ie i type: $cd ~/alejo (to change HOME DIRECTORY - alejo subdirectory but when i type it... (2 Replies)
Discussion started by: alexcol
2 Replies

7. UNIX for Advanced & Expert Users

Unix login session and Password

Hi All, I've login to Unix using login name guest and I'm working on it, I need another session to run some script hence tried to login but password invalid it says here my question is : Since I'm in working in one session can I set the password without knowing old password? is there any... (1 Reply)
Discussion started by: krishna
1 Replies

8. Shell Programming and Scripting

PHP: problem after login on website

I have a auction website i downloaded and when i log in as the admin, i get the following error whats wrong. the username and password are correct for the log in. Its trying to run another script called admin_catorgies_class.php . thats what i can see in the php script anyway. here the... (5 Replies)
Discussion started by: perleo
5 Replies

9. UNIX for Advanced & Expert Users

User login session

Having a problem on AIX 4.3.3 with the following error when more than 2 users try and sign onto the server. 3004-312 All available login sessions are in use. ???? (1 Reply)
Discussion started by: Docboyeee
1 Replies

10. UNIX for Dummies Questions & Answers

automatic login from windows by a telnet session

Help me please, I wanna know if it's possible to define in windows the option when somebody starts a telnetsession to a unix machine it automatically logs in with the username and password of this user. Or if there is a possibility to set the username and password to an Icon on the users... (3 Replies)
Discussion started by: Herwin
3 Replies
Login or Register to Ask a Question