bpat1434 wrote:Actually, just because it's dynamic does not make it page specific. Rather, it makes it session or user specific. And making it an external link is the right move in this case. If the style is page specific, then it goes in the head, yes. But he's generating dynamic css, not static for that one page css.
~Brett
Same same same. :rolleyes:
He's generating a css for every page, even if it's the same css for every page in a specific session. If not, if it was just generating a css for the session, then it would only need to be generated once, when the first page was sent for that session. All subsequent page requests would just refer to the same css.
And hey, there is the answer all by itself. Generate and send the css once, and just do the normal thing for the rest of the session. You could store a flag in the session vars that indicates css sent, look for it and don't generate another one.
Now, if this is not the case, if you are generating a css, with different setting each time a page is requested, then each css is page specific and so can and should be embedded in the <head>