Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Creating Login and Logout with cookies and Perl
Closed Thread
Old 01-31-2006, 10:19 PM   #1 (permalink)
 
Newb Techie

Join Date: Jan 2006

Posts: 39

smartydebater

Question Creating Login and Logout with cookies and Perl

Hey guys, I'm looking instructions on how to use cookies and perl to create smooth websites that require passwords.

Thanks
smartydebater is offline  
Old 01-31-2006, 10:21 PM   #2 (permalink)
 
Newb Techie

Join Date: Jan 2006

Posts: 39

smartydebater

Default

I've googled a lot of sites and have gotten nothing that really explains the process. Basicaly, what you do, and why you do it!
smartydebater is offline  
Old 01-31-2006, 10:22 PM   #3 (permalink)
 
Newb Techie

Join Date: Jan 2006

Posts: 39

smartydebater

Default

So If anyone knows anything about this, please help me!
smartydebater is offline  
Old 02-01-2006, 10:24 AM   #4 (permalink)
 
Ultra Techie

Join Date: Oct 2003

Posts: 544

fitzjj

Default

I wouldnt use cookies - insecure. Instead try using sessions or htpasswd. For info on htpasswd try my site on website security: http://www.ecs.soton.ac.uk/~jjf103/info3005/ and for info on sessions, i'll explain...

A session is basically a server side cookie. Using php or another similar language you would ask the user to enter their username and password. This would then need to be verified against the username and password stored in database. If correct you would set a session variable containig that users username - which if set means the user has logged in, if not then the user has not logged in. Look into sessions and all should become clearer. However it will need a database or similar to store the usernames and passwords. htpasswd on the other hand takes 10 seconds to set up.

Try my website here http://www.ecs.soton.ac.uk/~jjf103/c...8/coursework1/ This does what i have described with sessions, although only requires a valid username and doesn't bother with a password (use the username jjf103)
fitzjj is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On