Sponsored Content
Top Forums Shell Programming and Scripting Perl website login and session Post 302157577 by LNC on Friday 11th of January 2008 10:05:09 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
MojoMojo::Prefs(3pm)					User Contributed Perl Documentation				      MojoMojo::Prefs(3pm)

NAME
MojoMojo::Prefs - info on MojoMojo configurable preferences MojoMojo has a number of preferences that can be set in "Site settings" ("/.admin"). If values are not set in the database, they are read from mojomojo.conf, or default values are used. admins Login names of users with admin privileges. Default: 'admin'. name Site name. Default: 'MojoMojo'. main_formatter Specify which formatter to use as the main text formatter. The two options so far ares Markdown and Textile, with Markdown being default thanks to its versatility. For a comparison between the two, see <http://mojomojo.org/documentation/cheatsheet>. open_registration Controld whether user registration is available. Default: false. anonymous_user If set, users are allowed to post anonymously, and the edit will be shown with the username set in this option. restricted_user If set to a true value, normal users are restricted to editing pages inside their user space (the subpages of "/username"). Admin users can edit the entire site. Default: false. enforce_login If set, users are forced to login before performing any action. Default: false. check_permission_on_view If set, permissions to view are checked on view and search. Default: is false. create_allowed, delete_allowed, edit_allowed, view_allowed, attachment_allowed If true, anonymous users can create, delete, edit, view, and manipulate attachments, respectively. Defaults: true. entropy Random string used to generate secret keys for mail verification and such. disable_search If set, will use Google for site search. Currently highly recommended because KinoSearch consumes 100% CPU (see <http://github.com/marcusramberg/mojomojo/issues#issue/32>). use_captcha Control CAPTCHA for new user registration and anonymous edits. Default: false. theme Name of the active theme. Default: 'default'. cache_permission_data If set, permissions are cached. Default: true. default_lang Set the default language used for: o roles and the 'admin' username when creating the database o whenever no language is set via the UI and one is needed to display site text and navigation links, configure CAPTCHA, output language- specific plugin text etc. Currently supported values are: o "en" - English o "de" - German o "fr" - French o "ja" - Japanese o "no" - Norwegian o "ca" - Catalan o "es" - Spanish o "pl" - Polish o "ru" - Russian Default: "en" perl v5.14.2 2010-05-08 MojoMojo::Prefs(3pm)
All times are GMT -4. The time now is 03:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy