Dennis Spohr

Members
  • Content count

    17
  • Joined

  • Last visited

Community Reputation

3 Neutral

About Dennis Spohr

  • Rank
    Jr. Member

Contact Methods

  • Website URL
    www.dennisspohr.com

Profile Information

  • Gender
    Male
  • Location
    Malta
  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. Anything in the logs?
  11. 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 ...
  12. 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
  13. 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!
  14. Hi Sérgio, thanks for your reply. Unfortunately this doesn't change anything for me - still not working.
  15. 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