Hi Monks
I'm have a perl backed web site that does authentication etc, but I have a issue I was wanting some advice on.
If I log in as user A go to a node all works as expected.
i.e. http://www.mysite.com/cgi-bin/node.cgi?id=101
Hello User A,
blah blah blah
Then I log out user A and log in user B and goto the same page as the first user (the page was actually owned by user A, I just paste the link), it displays the same info, saying that its user A logged as before not user B.
i.e.
Hello User A,
blah blah blah
instead of
Hello User B,
not your page, bugger off
Now if you shift refresh the browser it works, so I'm thinking that the page must be cached.... How do I get around the pages being cached? I was thinking maybe it might have been because of my Content-type being 'text/html' and maybe that means 'ok there must not be any dynamic content so send the cached copy', but now I'm not so sure because if it ran the script to get to the header it would have displayed the rest correctly.
Any thoughts...?
Regards Paul
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.