Skip to main content

Questions tagged [sessions]

Use it for questions about the session system, which handles recognizing users from a session cookie.

0 votes
0 answers
44 views

I need to share sessions table between 2 sites (same domain, eg. .mysite.com). In drupal 7, i have already build this in settings.php. I have created a new database for this. On drupal 10/11, this ...
user28220's user avatar
  • 109
1 vote
1 answer
79 views

I have a Webform setup with a secure token URL, allowing anonymous users to edit and submit draft submissions, like this: https://website.com/webform/test_save?token=...
macbert's user avatar
  • 414
1 vote
1 answer
350 views

I set some session data for a user I auto logged out. Then tried to retrieve that session data in a form validation. It is not there. class MFAController extends ControllerBase { public function ...
Donald Winston's user avatar
0 votes
0 answers
60 views

I m beginner on drupal, and i have a problem with session. I created a custom form submission inside the clubs module. namespace Drupal\idan_login\Form; // Form submission handler. public function ...
Mohamed Ouhammou's user avatar
3 votes
1 answer
129 views

I am trying to run some functional tests in DDEV that check functions of protected routes. I can log in the first couple of users fine, but after that drupaLogin() fails to generate a logged in ...
Kevin's user avatar
  • 28.2k
0 votes
0 answers
107 views

not sure if anyone faces this issue, when I tried to login with the authentication. It shows TFA session has expired. But the user account was logged in. Screenshot attached, I tried to drupal set ...
DevNooby's user avatar
0 votes
0 answers
253 views

After my user is submitting a form, I want to logged him out, then redirect to the front page. then, display a message. public function submitForm(array &$form, FormStateInterface $form_state) { ...
lobafox's user avatar
  • 123
2 votes
1 answer
579 views

In short: a new php session is started upon every request made through nextjs, I somehow must keep the anonymous user session alive. For my anonymous users I need keep track of data submitted through ...
Maarten Hartman's user avatar
0 votes
0 answers
105 views

I am testing upgrade to Drupal 9. I upgraded core and logged in and fixed a few issues with module deprecated code and then was presented with a Twig issue where replace syntax had changed. I changed ...
Mark Edwards's user avatar
0 votes
1 answer
858 views

Suggestions for debugging a site which is now stuck in a "headers have already been sent" loop after successful login (redirect back to login form)? This is a production server for a site ...
William Turrell's user avatar
3 votes
1 answer
942 views

The Drupal documentation on sessions mentions that sessions can be accessed via the Request object: Session data is accessed via the \Symfony\Component\HttpFoundation\Request::getSession() method, ...
Neograph734's user avatar
  • 8,549
3 votes
1 answer
691 views

I need to set an additional cookie whenever an anonymous user received a session cookie. This happens when selecting a facet in Search API for example. The specific use case is that I need an extra ...
Sean Robertson's user avatar
1 vote
1 answer
417 views

I've spent the best part of the last day or two trying to implement lazy_builder (as seen in this brilliant tutorial https://github.com/joachim-n/drupalcon-europe-2020-lazy-builders). However, rather ...
Adamation's user avatar
0 votes
1 answer
107 views

UPDATED SITUATION: A user authenticates on my site. The user selects items to purchase and is sent via curl call (see below) to a payment site. The payment site does its thing and returns to my site ...
Marshall Morrise's user avatar
0 votes
1 answer
2k views

I have an issue with private tempstore storage that I wasn't able to solve. I've implemented a webform handler, which populates data in this storage and then I'm creating tokens out of the saved ...
Miloš Kroulík's user avatar

15 30 50 per page
1
2 3 4 5
16