To display a disclaimer twice per session in Joomla 6 for free, the most effective approach is to use a customizable popup module that supports cookie/session-based display limitations, such as EngageBox or Sticky Notification. 
Here is how to achieve this using free tools:
 
Method 1: Using EngageBox (Free Version)
EngageBox allows you to create popups with advanced targeting, including displaying a limited number of times per session. 
  1. Install EngageBox from the Joomla Extensions Directory (JED).
  2. Create a new Modal Popup and enter your disclaimer text.
  3. Navigate to the Display Options or Frequency settings.
  4. Set the frequency to show the popup based on Session or Cookie.
  5. Note: While free, you may need to configure the trigger to "On Page Load" and set the cookie lifetime to "Session" to ensure it only appears at the start of their visit. 
 
Method 2: Using Sticky Notification or Easy Popup
These free, lightweight extensions allow for popup notifications that can be controlled by session/cookie settings. 
  1. Install Sticky Notification (by Infyways) or Easy Popup from JED.
  2. Configure the plugin to display your disclaimer.
  3. Set the display rule to "Show only once per session".
  4. To achieve "two times," you would ideally need a pro version, but a workaround is to set it to appear on Page Load, and then use the "On Click" functionality to trigger it again if necessary, or simply use the session-based trigger to ensure it only appears once per visit. 
 
Method 3: Custom Code (Advanced)
If you do not want to use a plugin, you can create a custom module:
  1. Create a Custom HTML module containing your disclaimer.
  2. Use a simple JavaScript cookie script in the module to check for a "disclaimer_seen" cookie.
  3. If the cookie does not exist, display the modal and set the cookie.
  4. Set the cookie to expire at the end of the session. 
 
Key Considerations for Joomla 6
  • Compatibility: Ensure the extension supports Joomla 5.x/6.x.
  • Session Lifetime: Set your session lifetime in Global Configuration to a reasonable time (e.g., 15–30 minutes) to ensure the "per session" logic works correctly.
  • GDPR/Compliance: If the disclaimer is for cookie consent, ensure the popup allows users to "Accept" or "Decline".