I'm looking for user authentication system or rutines that i can integrate into my scripts. i don't need anything super secure. i don't need to protect just some directories. i just need to show extra suff on the pages if user is logged in, untill he loges out or session expires. i guess something with cookies and session ids. i don't know much about how the authentication and user tracking works to write it myself from scratch.

it also shouldn't use any Perl libraries that are unusual to be installed on most web hosts.

does anyone knows free scripts that can help me, maybe not a complete system, but working subs that i can do some work on and get 'em to work for me? thanks in advance!