Hello,
before I heard of CGI::Session, I had my own little sub routines that would authorize,verify, expire, and logout.
I have a web site that has Certain sections that require the user to be logged in as a member. There are also certain sections of the website that are just regular .html pages and free to public/members.
When I first started to build this site about 2 and a half months ago, I did not intend for certain sections to require users to be logged in. (I only intended there to be a members only section that had certain areas for members).
SO now I have my site with some pages that are Perl files and some pages that are just regular HTML. So lets say someone comes to the home page...which is index.html. He logs in, and now hes at index.html again. But then when he goes to another HTML page this will then cause a breakage in the user/session tokens when being passed through. This will also happen vice versa, when the user goes to a members area page, then goes back to a html page...a breakage will happen again.
Does anyone know a better way for me to manage my tokens, WITHOUT re-writing all the html files into .pl files to pass the session tokens? I was thinking of one main script that checks/verifies the session token and then uses a HTML Template module to read the html files and print them out? Then have some sort of regex to append all session tokens to the end of urls in the html files.
The way I was originally planning to do this was to re-write all 12-13 html files and convert them to PERL where it can do the session token management routines. But this will cause 12-13 html files and 12-13 .pl files.
Thank you! tanger
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.