This question about Configuration, Using an extension, Authentication or Authorisation: Answered but needs rewriting

Caching log in page

Hi,

In august, I moved the foswiki installation at the office from an old Ubuntu machine to a more powerful Windows server.

I made the following changes:
  • Now I force users to login even for reading topics: WebPreferences topic > Set ALLOWWEBVIEW = ...
  • Now caching is enabled - so I see 'This page was cached on ... Get a fresh version here.' in the footer of every page
What remained the same, was:
  • Session Expiry: 32400 = 9 hours, so I want the users to login once a day
I now have the following annoying effect:
  • the first wiki topic I access, I have to enter my user name and password (OK)
  • I check the 'Remember me on this computer' checkbox and click the Log in page
  • now I'm able to access any topic in the web without having to login again... except the first wiki topic I accessed - there, I suppose, the login page is cached instead of the topic page - when I refresh the page (F5), the actual topic is shown.
So my question is, how can I force foswiki to cache the actual first page I access on a certain day instead of the Log in page.

Kind regards

Stijn

-- StijnBousard - 10 Dec 2020

I have made some changes, and now an environment that only shows the login page once a day.

The changes I made:

Configuration

Security and Authentication category
  • Sessions tab
    • Use Client Sessions
    • Session Expiry
  • Login tab
    • Authenticated Scripts


tick
32400

added 'view'
Tuning category
  • Cache tab
    • Enable Page-Cache
    • Cache Implementation
    • Cache Root Directory


tick
Foswiki::PageCache::DBI::SQLite
$Foswiki::cfg{WorkingDir}/cache
Extensions category
  • !AutoRedirectPlugin
[
{
'context' => 'view',
'target' => 'WebHome',
'topic' => 'WelcomeUser',
'web' => 'Web'
}
]
tick enable
Extensions category
  • !HomePagePlugin
    • !SiteDefaultTopic
    • !GotoHomePageOnLogin


!Web.WelcomeUser
tick
WebHome is a normal topic.

WelcomeUser topic only contains:

   * Set CACHEABLE = off

-- Main.StijnBousard - 21 Dec 2020
 

QuestionForm edit

Subject Configuration, Using an extension, Authentication or Authorisation
Extension HomePagePlugin, AutoRedirectPlugin
Version Foswiki 2.1.6
Status Answered but needs rewriting
Related Topics
Topic revision: r2 - 21 Dec 2020, StijnBousard
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy