With CustomContent, I can have either:
Welcome XXX, signout
or
Login/Register
At the top of each page.
However, if pages are cached, this mechanism doesn't seem to work. Alternatively, uncached pages always inccur a generation time that cached pages (obviously) don't have.
It has occurred to me that perhaps I could use jquery once the page has been loaded to add either of these strings into a . That way, the actual generated content of the page doesn't change, but the stuff that's in it changes, if you see what I mean.
So in my page:
Code: Select all
<div id="loginblock"> </div>
{literal}
<__script__ type="text/javascript"><!--
$.ready(function() {
$"#loginblock".load("loginblock.php");
});
--></__script>
Anyone know how to tell an external page the state of being logged in, or for that matter, telling the external page the username?
Or is there an easier way? My engineering enthusiasm is making this wicked complex, when there might be a simple tag or something to do it all already.
Thanks!
-Ken