Jump to content

Dennis Spohr

  • Content Count

  • Joined

  • Last visited

Everything posted by Dennis Spohr

  1. Horst, thank you very very much, your reply helps me a lot!
  2. How can I find such a hook? I don't have much experience with them yet. Very nice idea regarding weekly emails! Wow nice module, didn't see this one before. I will check it out for sure. Thank you!
  3. Hi all, with $config->adminEmail it's possible to send out an email for fatal errors (for example a syntax-error). It would be nice to get also an email in case of an unhandled exception. There could be a situation of an wrong upload and exceptions on the live-page. Is this possible? Also it could be a very handy feature to be able to choose specific logs which are sent our via email automatically. Thanks for your feedback, Dennis
  4. Hi all, I'm using the AIOM+ module for speeding up my page. My website is using SSL. In the module there's the option for domain sharding. Without SSL it's working perfectly, but as soon as I access the website via SSL it's not working. Seems like the Option "Domain sharding (SSL)" is beeing totally ignored. Is there anybody with the same problem? Thanks! Dennis
  5. https://github.com/processwire/processwire-issues/issues/237
  6. 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!
  7. 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 ...
  8. 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!
  9. 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:
  10. 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, '/', '.mydomain.net'); config.php: $config->sessionCookieDomain = '.mydomain.net'; htaccess: php_value session.cookie_domain ".mydomain.net" 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 ...
  11. 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
  12. 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: https://www.gonnalearn.com/2008/04/10/sharing-session-data-across-domains-with-php/ Any idea from anyone? Thanks!
  13. Hi Sérgio, thanks for your reply. Unfortunately this doesn't change anything for me - still not working.
  14. Hi all, I have problems to keep my session on different subdomains (including www). I've set the following config: $config->sessionCookieDomain = '.mydomain.net'; $config->sessionCookieSecure = false; But it doesn't work, I always loose the session when I switch between www.mydomain.net and example.mydomain.net. Could it be because both of them have a different SSL-Certificate? (https) Thanks for any help! Dennis
  15. 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
  16. 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'): "www.mydomain.com/theirsite" Now I want that they can use their own domain. So this domain needs to load their page: "www.theirdomain.com" goes to "www.mydomain.com/theirsite" 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
  • Create New...