Questions tagged [session]
A session refers to the communication between a single client and a server. A session is specific to the user and for each user a new session is created to track all the requests from that user.
70 questions
0 votes
1 answer
94 views
How to secure Backend Custom Field Ajax Call in Module Backend?
As the title says I have a Custom Module with a Custom Field that does some AJAX requests (for example delete in helper database table of the module). The AJAX itself works: field.php: ... private ...
0 votes
0 answers
114 views
Right way to develop an authentication plugin in Joomla 4 / 5
I'm very new at this and it's my first attempt developing a plugin for Joomla. I'm currently using J5, and I'm trying to develop a custom authentication plugin. At the end of the code I'm using: $...
0 votes
1 answer
108 views
How can I change the duration of a front-end session in a component?
I have made a component where it is tedious when the session ends after 15 or 30 minutes and you have to log in again. For all other pages, however, this time is fine. Is there a way to temporarily ...
1 vote
1 answer
188 views
CSRF Token Mismatch Issue in Joomla 4 Custom Form Submission
I've implemented a custom form directly within my Joomla article template's code. The form is processed by a handler located in my template. Everything worked fine until I decided to add a CSRF token ...
2 votes
1 answer
63 views
Unset filter from user state
I like to unset my search filter that is saved in the user state. I have a search input with id filter_search This is the code to save the filter. $context = $this->getUserStateFromRequest($this-&...
1 vote
1 answer
1k views
"Warning: session_start(): Failed to read session data" after upgrading from PHP 7.4 to PHP 8.0
After upgrading a stable Joomla 3.10.11 website from PHP 7.4 to PHP 8.0, the following error is displayed on the front end and back end of the website: Warning: session_start(): Failed to read ...
0 votes
1 answer
159 views
Session variable from a module is only accessible from the template after refresh
To add some common ground. I need to transfer 3 variables from a module to my template when the sites loading. In my module I get 3 links to specific images and they need to be included in the ...
0 votes
1 answer
8k views
Application shows session_start(): Failed to read session data: on browser
I have hosted a website using a backup and when I access it through a web browser, it shows me error and I have changed configuration.php file from: public $error_reporting = 'none'; To: public $...
0 votes
1 answer
278 views
Reload Item View with a Button and send a variable to the session
I try to add the possibility to my component to unlock content within the component item view. If you watch the item view page, you see a description and an image and a little button. If you click the ...
0 votes
1 answer
203 views
Does an AJAX request to a PHP script inherit session context
From JavaScript loaded via a static HTML5 file [loaded from a Joomla page element's onClick event and window.open()], does an AJAX request to a PHP script inherit the session context such that ...
0 votes
1 answer
80 views
Logged in users not logged into Kunena on second site
I have 2 sites, let's call them site1 and site2. They're setup as subdomains such as: site1.domain.com and site2.domain.com They're both running Joomla 3.9.24 and I have created a view on site2 ...
1 vote
1 answer
647 views
Joomla 3.9.23 Installation error after moving configuration file
I've installed last version of Joomla (3.9.23) and have encountered a problem. When I install Joomla with automatic setup all is working correctly. What I need is to install Joomla by deploying ...
0 votes
0 answers
167 views
Joomla - PHP session in joomla disappears
I am programming a little component and module in Joomla. My component and module reads a variable from the php session (this variable is set before for external php script). External php script: ...
1 vote
1 answer
357 views
Session Management Across Multiple Devices
Today users wish to be logged in across multiple devices. The fact that Joomla signs out a user from all devices when one device was signout is driving users crazy. Can someone please help me, and ...
3 votes
1 answer
214 views
Do Joomla sessions for guests expire at different periods of time than logged in users?
I've been trying to track down some odd behaviour on a test site of mine and it appears to be due to guest sessions. I could be wrong, but it seems like Joomla sessions for guests are expiring at a ...