You are here: how to cache pages with login names « PHP Programming Language « IT news, forums, messages
how to cache pages with login names

Posted by lister on 02/18/07 21:17

I'm fairly new to this web authoring lark, and I was pondering today
how to optimise my site for cacheing, but as far as I can see there is
no way to do it.

My site has a standard header that includes the option to either
"Login" or "Logout <username>". This header is generated by PHP
reading the session ID and looking up the corresponding username.

I guess I could cache the username in the user's session data to save
a DB lookup (or maybe even a cookie to save looking up any session
data at all). However, I still cannot see how I can ever cache the
resultant page since the header is user specific, even if everything
else is static?

How do other people handle this? Having the username at the top seems
a pretty common design, so I guess the problem must have been tackled
somehow?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация