mikepatrick / php-google-calendar

Simple demo of PHP client library to access Google Calendar events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index.php returns 500 error after a long while

dominicklee opened this issue · comments

Hello, I noticed you store the OAuth details in a PHP session.

However, it seems that after a long while after I signed in with Google, I am not able to access Index.php

Instead, it shows an Error 500 and does not list the calendar events anymore. Only after I clear the session variables (aka "sign-out") and perform the sign-in action was I able to see the Google authentication again.

Could anyone explain why I am seeing Error 500 after being signed in for a long while? Could I be signed in indefinitely?

I believe the access token has an expiry date and needs to be called again.