Skip to main content

Questions tagged [session]

2 votes
1 answer
201 views

I have a Craft CMS 4 with forms for logged-in users. Some users may keep certain pages open in their browsers. Sometimes, users submit the form while their session has expired (after one hour, in this ...
Romain P.'s user avatar
  • 1,927
1 vote
1 answer
385 views

I am duplicating a Craft 3 site from a production environment to a dev environment (local with MAMP Pro). On the "new" dev site I can't log into the control panel. The credentials are valid ...
Kirk Roberts's user avatar
0 votes
0 answers
127 views

I'm working on a project where I use Craft CMS to manage user sessions and store user preferences such as site version and preferred language. However, for privacy reasons (GDPR compliance), I'm not ...
Romain P.'s user avatar
  • 1,927
1 vote
1 answer
216 views

From a custom module, I would like to impersonate and start any user session in the browser. This session will be based on a user query result got from a web controller. Something in a way like when ...
Romain P.'s user avatar
  • 1,927
2 votes
1 answer
179 views

In my Craft service class I need to set SESSION values. Within a method there can be multiple values to be set and depending on what a request to an API returns, there are different keys to save. My ...
Luckyfella's user avatar
0 votes
1 answer
179 views

I currently have a multi-site Craft 3 install with this in the general.php config file (amongst other settings) return [ '*' => [ 'defaultTokenDuration' => 259200, //72 hours ] ] ...
Chad Crowell's user avatar
3 votes
1 answer
711 views

Let's say I installed latest version of Craft CMS (4.2.5) with no plugins or modules or any file that could modify current user's session. Just plain Craft CMS. When I went through records in Redis I ...
Dominik Krulak's user avatar
1 vote
1 answer
705 views

I am building a onepagecheckout for craft commerce 3. I created a custom controller to submit cart and payment info in one form submit. I'll call the default updateCart action with a curl request and ...
Maarten Heideman's user avatar
2 votes
1 answer
283 views

I am working on trying to get a local copy of a site working, but ran into an issue where the front end is working, but the admin page is not responding when I try to login. This site is Craft 3.7.44 ...
Rodney Little's user avatar
1 vote
1 answer
113 views

When you configure the session component, I see as session used, pointing to the SessionBehaviour class but what does this do or what does it mean? 'session' => [ 'class' => yii\redis\...
Sean Delaney's user avatar
1 vote
1 answer
595 views

I'm from custom php world but It looks like I can't just set a session variable in plain php. I'm playing around use craft\web\Session; ... $session = new Session(); $session->open(); $session->...
Sylvain Tremblay's user avatar
0 votes
0 answers
73 views

I've got multiple sites running on XAMPP (I'm on Windows 10). Each has its own domain (eg. dev.example.local, dev.otherexample.local, etc). When I try to have more than one site CP page open in the ...
Sandwich's user avatar
  • 636
1 vote
0 answers
329 views

I'm getting the good old session expired popup every minute in the admin panel which is odd given that memcached should be properly configured: php.ini session.auto_start = 0 session.save_handler=...
Max Werner's user avatar
1 vote
1 answer
361 views

I am looking to customise the default flash message text for certain behaviours but cannot seem to find any reference to them in the code or control panel - does this exist anywhere? And could it be ...
iamkeir's user avatar
  • 468
3 votes
1 answer
801 views

On a production site, we're seeing a ton of the following warning in our web.log files for (seemingly) every request, creating a ton of noise in the logs and making it hard to spot "real" issues: &...
Tom Davies's user avatar

15 30 50 per page
1
2 3 4 5