Dennis Spohr

  • Content count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Dennis Spohr

  • Rank
    Jr. Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  2. Hi Robin, thanks for your feedback. Yesterday I changed the whole structure of my project, so I don't have to use different domains. But still it's more like a workaround since now I don't have the full functionality I wanted to have. I will open a GitHub Issue soon. Thanks again!
  3. If I look into the session-table, I get 3 entries: I go to Domain B, session is created. I login there and $user is set. While the login process Domain A is called via ajax and create another session. Also with $user set. All seems to be fine until here. I go to Domain A - but here another session is created. The session which was created via the ajax request is ignored. Why? In the config I set $config->sessionFingerprint = false; Anyone an idea? There must be a solution somehow ...
  4. Hi all, somehow I can't properly login with ajax. That's the content of my ajax-file (placed on Domain B, called on Domain A) <?php namespace ProcessWire; $name = $sanitizer->text($input->post->name); $pass = $sanitizer->text($input->post->pass); if ($name != '' && $pass != '') { $test = $session->login($name, $pass); print $test->name; print $user->name; } ?> The first print gives me the name like expected. Means, that the login was successful. But the second print returns "guest". If I reload the page on Domain B, the user is not logged in. Any idea? Thanks!
  5. Hi Robin, all domains/subdomains are using the same PW-installation. I use my htaccess-file to point each of them to a specific page. Yes I want to login the user for both domains. Exactly. I use PW 3,0,42. The sessions are stored in the database. Currently I'm trying to login the user via an ajax-request, but couldn't get this one to work either. But still working on this. Could be an interesting option since I use https everywhere and later on I will have other domains (not subdomains) as well. Got this idea from here:
  6. Anything in the logs?
  7. For testing I use both domains without an ssl-certificate and without any redirects. I tried to set the cookie-domain with these 3 ways: config.php: session_set_cookie_params(0, '/', ''); config.php: $config->sessionCookieDomain = ''; htaccess: php_value session.cookie_domain "" All of them have the same behavior: if I login on domain A and then on subdomain B, the sessions on both are destroyed. I also played with these values: $config->sessionFingerprint = false; $config->sessionCookieSecure = false; But no change. I'm totally stuck now ...
  8. Does anyone has an idea? I tried many, many things and lost 3 days experimenting on it already. I have the feeling that ProcessWire somehow does something wrong. Thanks, Dennis
  9. Hi all, I'm trying to do it in a different way now. On Domain A, I append the session_id: $pages->get(123)->url.'?sid='.session_id(); On Domain B I placed the following code in the site/config.php: if (isset($_GET['sid'])) { session_id($_GET['sid']); } session_start() is called after loading the config, right? Unfortunately it still doesn't work. After doing this even the session on Domain A is destroyed. I got this idea here: Any idea from anyone? Thanks!
  10. Hi Sérgio, thanks for your reply. Unfortunately this doesn't change anything for me - still not working.
  11. Hi all, I have problems to keep my session on different subdomains (including www). I've set the following config: $config->sessionCookieDomain = ''; $config->sessionCookieSecure = false; But it doesn't work, I always loose the session when I switch between and Could it be because both of them have a different SSL-Certificate? (https) Thanks for any help! Dennis
  12. Hi Christophe, yes I saw the module. But not sure if it solves my problem, especially because it doesn't seem to be compatible with my ProcessWire version. I get some errors after installation. I use PW 3.0.42. Thanks, Dennis
  13. Hi all, this is my first post here - so let me say first: I love ProcessWire! I have the following scenario: On my website users will be able to create their own site. This site is a page (in this case 'theirsite'): "" Now I want that they can use their own domain. So this domain needs to load their page: "" goes to "" but while showing the first domain in the browser. I'm trying to archive this with an htaccess entry: RewriteCond %{HTTP_HOST} www\.retuschierenlernen\.de RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?it=retuschierenlernen/$1 [L,QSA] I get the following error, because it loads the my main site, not the page of my user: Warning: file_put_contents(/www/mysite/test/html/site/assets/cache/FileCompiler/site/templates/public-site.php): failed to open stream: Permission denied in /www/mysite/test/html/wire/core/FileCompiler.php on line 327 Thanks! Dennis