The eternal session

Tuesday, October 25, 2022 at 4:43 PM

I am always annoyed at websites that constantly log me out.

I just modified Front Controller to use a session cookie instead of server-side sessions.

The cookie is stored in my user table, so it will never expire or change on its own.

This means that you can stay logged in forever.

If you ever forget to log yourself out on another device, I added a "Reset cookie" button that resets (changes) the cookie.

FC is also now much faster when changing pages.

(I was previously using a custom server-side session handler that saved the session data in the database, which slowed things down)

I was inspired by jwz :

https://www.jwz.org/blog/2008/05/take-my-cookie-choke-on-it-choke-on-my-cookie/

Version 0.13 is available :

http://fc.philippe97.ca/

Name
Password

No need to register, just enter the same name and password every time.