[TYPO3-dev] How can I detect a logged in fronted user?

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Jun 12 14:12:34 CEST 2007


JoH asenau schrieb:
>>> I want to detect if a frontend user is logged in using mod_rewrite,
>>> not TYPO3.
>> that doesn't answer "why"...
>> we are all very curious ;-)
> 
> Because he might want to know if a user is logged in before sending him
> a) to a static html file
> b) a dynamically generated TYPO3 page
> 
> This still would not solve the problems with extensions that are generating
> non-cachable content with or without a logged in user but maybe I have been
> missing something ...

How about simply writing the cached (static) pages into a directory (eg 
typo3temp/pagecache using the names Real URL provides). With mod_rewrite 
you check only if the file exists like it is done usually and rewrite the 
URL to this special directory.

Now you need "only" to get rid of the files when they are 
deleted/inaccessible or renamed/removed.

Masi




More information about the TYPO3-dev mailing list