bogglemaster89 has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am seeking the wisdom of the master yet again!

ive been working about 9 hours on sessions and got really no where at all! I cant really install any modules, but will if I have to (or at least write about them in my report). I want users to log in using a username and password they type in (although its connected to an Mysql database, and therefore if they type a wrong one in it fails (THIS IS ALREADY DONE)). Then if they tick a box the detials they enter will "magically" be saved, hoorah! Much like they do on this site with the 'make me a cookie cowboy' bit, only if cookies can be avoided something more secure! I've tried using html headers, but that didnt seem to work. If anyone can give/show me a tutorial which is usable or give me the answers that would be nice! to recap I would like sessions to block users from sites which they shouldnt access if they cant log in AND the session to remember them if they have selected a tickbox to remember this

that is all, if im that unclear ill post my loginformhelper.cgi code up. However that will only explain the variables that need doing rather then what I havent done so far, as I said ive been working but got knowhere, and yes my mind is exploding

PLEASE HELP ME ARRRRRRR! bogglemaster89

Replies are listed 'Best First'.
Re: perl sessions/cookies
by moritz (Cardinal) on Apr 13, 2010 at 20:14 UTC
    only if cookies can be avoided something more secure!

    If you need something more secure than cookies, you might look into client side SSL certificates.

    Perl 6 - links to (nearly) everything that is Perl 6.
      Thanks I will look into this tomorrow as my iris' are burning right now! bogglemaster89
Re: perl sessions/cookies
by superfrink (Curate) on Apr 14, 2010 at 15:49 UTC
Re: perl sessions/cookies
by scorpio17 (Canon) on Apr 14, 2010 at 13:22 UTC
    Some time ago I started a tutorial on how to use CGI::Application to create a simple login page. It never made it past the "request for comments" stage, but you can still find it here.