Hello Monks,

A while ago, I asked for advice concerning templating systems. I got a lot of really good advice. After looking over all of the systems, I chose to work with HTML::Template. I am very happy with it. It is easy to use and seems to make sense to me. I have some questions about it though. The questions deal with sessioning.

What is the best way to authenticate a user, assign him/her a session, and then base what that user can or can not do based off of that session? Are there any modules specifically for HTML::Template that deal with this issue?

I understand the basics. It makes sense to authenticate the user server side and then assign a session to that user. I plan on “giving” the user a cookie with the session ID. When the user accesses the site, the cookie would be checked for the session and actions would be based off of the session ID.

Once this is figured out, I can tailor navigational headers to individual users and other cool things.

Your help is appreciated.

Thank you,
ghettofinger


In reply to HTML::Template and authenticated sessions by ghettofinger

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.