matthiku / cSpot

c-SPOT - the church-Services Planning Online Tool
5 stars 4 forks source link

Error: "The page has expired due to inactivity. Please refresh and try again." #199

Closed jeremihz closed 4 years ago

jeremihz commented 5 years ago

unable to register a user giving me th message The page has expired due to inactivity.

Please refresh and try again......need some help

matthiku commented 5 years ago

Ok. Can you give me some more details? What have you done so far? Did you fork the project on your own github?

jeremihz commented 5 years ago

i kind off downloaded it and integrated it in my wamp llocalhost......already set up its database and set up send mail configuration...thats all

On Mon, Jul 15, 2019 at 9:18 AM Matthias Kuhs notifications@github.com wrote:

Ok. Can you give me some more details? What have you done so far? Did you fork the project on your own github?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matthiku/cSpot/issues/199?email_source=notifications&email_token=AG27KDRVIRKIG6KGNPA4HHTP7QJDDA5CNFSM4IDCZCWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4ZQFY#issuecomment-511285271, or mute the thread https://github.com/notifications/unsubscribe-auth/AG27KDUQGXSNPBQ327Q46VTP7QJDDANCNFSM4IDCZCWA .

matthiku commented 5 years ago

Did you follow all 8 steps in the installation instructions? https://github.com/matthiku/cSpot#installation Have you got experience with Laravel?

chris24walsh commented 4 years ago

I also see this issue, @jeremihz. I'm using the new project Dockerfile to install and run via Docker, so the installation steps and issue are repeatable for anyone else. I'll investigate the issue once I get more familiar with the code.

matthiku commented 4 years ago

First of all, my apologies for the long delay in responding. Was too busy with other stuff.... But now.... I found "a" solution, see: https://stackoverflow.com/a/48938774/3202115 Not sure why, it could be the new syntax in the current Laravel version.

matthiku commented 4 years ago

On further investigation and tests, I found also that this can be an issue with your browser's cached data! When I run this in an incognito Browser window, the issue is gone! @chris24walsh @jeremihz Can you confirm this?

chris24walsh commented 4 years ago

Actually, I still see the error when I compare the old code to the new commit (where it is fixed). There are two different crsf tokens in the debug panel for the session and the request. Cached session token for the 'c-spot.app' domain? image

matthiku commented 4 years ago

This issue really confuses me! I have had the error again, cleared the cache and it worked. I really wonder what's going on. Probably my bad code .... ;) Why don't you send me an email and we can arrange to have a screen sharing session where I walk you through the app and the code etc.?

matthiku commented 4 years ago

Closing as it is not reproducible any more.