Here's what I did. Simple enough to save me the database overhead of storing the session, while still loading language an theme.
(after including common.php)
Code: Select all
$user->data['user_id'] = ANONYMOUS;
For server rss feeds for instance this is perfect, as this gets hit numerously by bots an this prevents getting too many UPDATES on the phpbb_sessions table (which on heavy load creates a bottleneck).