Totally Zenned
- Join Date:
- Jun 2005
- Location:
- Kelowna, BC Canada
- Posts:
- 1,033
- Plugin Contributions:
- 4
sessionWatcher (better handling of session timeouts)
Note: This replaces my short-lived storedSessions contrib. It provides the same functionality but "storedSessions" was an inappropriate name and the methods required core-file edits. sessionWatcher does not.
sessionWatcher provides serves the following purposes:
- To return a user to the page they were on after they log in using the "log in" links (but doesn't interfere with pages that have built-in history). This is more intuitive for the user.
- To allow a user to not have to re-type data when submitting a form after their session has timed out. This can apply to the Contact Us page, the Write a Review page, or any page that a user is required to be logged in to submit, and could conceivably take longer than 24 minutes to complete (24 minutes is the default session time-out). For example, if they are a slow typer or they get distracted. Save your customers unnecessary work and frustration!
Features:
- No core file edits!
- Simple template edits to the forms you want to save
- No security problems! (although you can create some if you try hard enough - so follow the readme)
Simple yet very effective - just what a contrib should be. Your customers will appreciate this! Actually, they won't appreciate it... but they won't hate you for not having it! Understandably, they HATE having to repeat themselves. We've all been there... you take 20 minutes to type something out carefully, hit submit and BAM something went wrong and you have to start over! Well, that can still happen from server errors, connectivity problems, or browser bugs.... but at least it doesn't have to happen from an unexpected session time out.
24 minutes is way too short in some cases. However, increasing that timeout is dangerous for obvious reasons, so the admin here don't want you to do it. That is why sessionWatcher was created... to alleviate the problems with session timeouts, while retaining the security it provides.
note As stated in the readme, you should NOT apply this contrib to forms in your checkout process! Why? I'm not sure if there is a problem with it, but there hasn't been enough testing and the results of a side-effect there could be disasterous. I would appreciate testers to try it on a NON-LIVE site though, to see if we can identify and address any issues that do creep up.
I'll post a link to the download area as soon as the contrib is active (or look yourself for sessionWatcher in the other modules category)
- Steven