smburdick/modular

User login time

Closed this issue · 2 comments

For testing, I have been calling `setcookie("userID", 0, time() + 86400) at the top of many of my PHP pages. Since many pages will ask for this cookie, I think the cookies should be refreshed as often as possible in production (e.g., every time a page loads). That way if the user is continuously using the site for a long period, they will always be treated as if they are logged in.

So we should, whenever we go to a new logged in section refresh the cookie that should only last for 1 day?

it can be any amount of time but yes I think so