-1

Can anyone point me in the right direction when trying to troubleshoot this web app (Dorothea Special School) I created a few years back using this link Laravel 5 And His F*cking non-persistent App SetLocale

If I can recall it was working perfectly when I 1st published the web app, but for a while now it doesn't seem to be working correctly... I think I did check the log file on the server and a couple more things to no avail. Do you think I need to run a composer cmd on the server?

Tim Kruger
  • 863
  • 2
  • 10
  • 26
  • Things to try: `App::setLocale('nl_NL');` and on server level `apt-get install locales-all` – online Thomas Nov 19 '18 at 10:45
  • Hi Thomas Moors thanks I just noticed now that if I use https://... instead of http://... it seems to be working 100%, so would your comment above still apply? – Tim Kruger Nov 19 '18 at 10:47
  • 1
    No I think not, this probably has to do with your session cookie only be set trough https. In config/session.php you have an option called `secure` (line 164 on my installation) which you might want to set to false. – online Thomas Nov 19 '18 at 10:49
  • https://imgur.com/ukJGT8G – online Thomas Nov 19 '18 at 10:50
  • @Thomas Moors great thanks, but if I set it to false will it work correctly for http://... and https://... or only http://... then? If it's only going to work for http://... then it's kind of a catch 22. Wouldn't it be better / easier to rather redirect all http://... to https://... then? What are your thoughts? – Tim Kruger Nov 19 '18 at 11:30
  • 1
    yes https only would be best – online Thomas Nov 19 '18 at 12:12
  • Thanks very much for all the help :-). You must add all your comments as an answer when you have time then I can mark your answer as the correct one. – Tim Kruger Nov 19 '18 at 12:16

1 Answers1

1

You have 2 options: only allow https through redirecting http or disabling secure for cookies in your config.

online Thomas
  • 8,864
  • 6
  • 44
  • 85