Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- triggering action on logout - client or server sid...
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
triggering action on logout - client or server side
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-10-2012 04:00 AM
When our users log into SFDC they are sent to a "Time Card" page to "punch in." Ideally they are supposed to "punch out" before logging out, but of course they sometimes forget.
What we would like is for them to be reminded or redirected to the time card when trying to log out (or closing the tab/browser). I thought to try this via javascript with the beforeunload event but that triggers the event every time they change pages and it seems that you can\t capture a window close event. So does anyone have an idea how to do this?
Another acceptable solution would be server-side to automatically record into the time card when the session ends. Is there any way to trigger an event on logout/end of session?
Thanks,
Dovid
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
What we would like is for them to be reminded or redirected to the time card when trying to log out (or closing the tab/browser). I thought to try this via javascript with the beforeunload event but that triggers the event every time they change pages and it seems that you can\t capture a window close event. So does anyone have an idea how to do this?
Another acceptable solution would be server-side to automatically record into the time card when the session ends. Is there any way to trigger an event on logout/end of session?
Thanks,
Dovid
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

