mozdev.org

Session Manager

Session Manager is free software (MPL), but if you find it useful you can support its development

resources:
subprojects:
Contents:
Importing
Startup & Shutdown
Saving & Restoring
Display
Undo Close
Advanced
SessionStore

Logging

User Guide

Importing:

Session Manager can import sessions created by the Tab Mix Plus and SessionSaver add-ons. To import press the associated import button on the general options page. Note that to import Tab Mix Plus sessions, Tab Mix Plus 0.3.6 or higher must be installed and enabled.


Startup & Shutdown:

The startup and shutdown options allow the user to configure what Session Manager does on startup and shutdown.

For startup there are three startup options for Session Manager:

  • None - Session Manager will not do anything at startup and will let the browser handle startup. To make things easier for the user, the user can set the Firefox startup options here. The "Show my last loaded page" is a hidden preference in Firefox that will cause it to always load the last loaded page when opening a new browser window. It was included here for the sake of completeness, but I don't recommend using it.

  • Prompt for a session - Session Manager will prompt for which session to load at browser startup as well as allow the user to choose which windows and tabs in the session to restore. Note that when this is selected, Session Manager will always backup the current browser session at shutdown in case the user wants to select it at startup. For more information see below.

    • Pre-select previous session - When displaying the prompt, Session Manager will pre-select the latest backed up session. This makes it easier to restore the last session as it will already be selected when the session prompt window opens.
  • Select session - Session Manager will always load the selected session at startup. A few notes about selecting the "<Previous Browsing Session>" in 0.6.2 and above. Prior to 0.6.2, selecting this would set the Firefox option to "Show my windows and tabs from last time". In other words it caused Firefox to restore the previous session at startup. As of 0.6.2, if "<Previous Browsing Session>" is selected, then Session Manager will do the restore itself. This was changed because Session Manager's backup data may differ from Firefox's depending on the Session Manager settings (see Saving & Restoring).

The shutdown options are as follows:

  • backup the current session - This saves a backup of the browser session at shutdown if it is not an "autosave" session. Backup sessions can be accessed from the Backup folder. Note that empty sessions (blank windows) are never saved.

  • discard the current session - The current session is not backed up at browser shutdown, with one exception (see below).

  • ask whether to backup the current session - Session Manager will prompt the user at shutdown whether or not to backup the current session. The prompt at shutdown has three options:

    • Save - This will backup the current browsing session to the backup folder.

    • Save and restore at startup - This will backup the current browsing session to the backup folder and then restore it the next time the browser starts. Choosing this will temporarily override the current startup options. This basically works like the Firefox "Save and Quit" prompt.

    • Don't Save - This discards the current browsing session (see exception below).

The exception I mentioned above is that Session Manager will always back up the current session, if the startup option is set to "prompt" or it is set to restoring the "<Previous Browsing Session>". The reason for this is that if the current session were not backed up then there would nothing to restore. What happens in this case is if the user chooses to not save the session at shutdown, then the backup file will be deleted at browser startup. For those curious, the reason the backup session is saved for the "prompt" startup setting is because the user can choose the "<Previous Browsing Session>" from the list.

Treat closing last open browser window as shutting down - If checked, Sesson Manager will treat closing the last browser window as if the browser has shut down, even if the browser process has not exitted. Basically this causes Session Manager to do it's backup processing if all browser windows are closed, but the browser does not exit. OS X users may want to check this since Firefox continues to run on OS X even after all browser windows are closed. Windows and Linux users can also trigger this by closing all the browser windows, but leaving things like the Download or Error Console open. If not checked, Session Manager will open do it's backup processing when the browser process actually exits.


Saving & Restoring:

The saving and restoring options allow the user to configure what Session Manager does when saving and restoring sessions.

Saving:

  • Save Session Cookies - When checked session cookies are saved in the session files, otherwise they are not. Regardless of what this is set to, Session Manager will only save session cookies on pages specified in the SessionStore options. Note that permanent cookies are never saved in session files.

  • Allow Saving during Private Browsing Mode - Normally Session Manager disables saving when the browser is in a private browsing session in order to maintain privacy. If this option is checked, then Session Manager will allow saving while in a private browsing session, but only if encryption is enabled.

  • Number of older (crashed) session backups to keep - This specifies the total number of old backup and crashed sessions to keep. This number does not include the "". To disable backing up old sessions, set this number to 0. Note that the cleanup of older backup sessions occurs when the browser shuts down normally so backup sessions created by crashes can exceed this limit, but will be cleaned up when the browser is shut down normally.

Restoring:

  • Replace Existing Windows - When checked, Session Manager will default to replacing the existing windows when a session is loaded. This setting can be overridden at load time by either right clicking on the session name or by using one of the modifier key combinations.

    Note that if Tab Mix Plus's single window mode is enabled, this setting changes to "Replace Existing Tabs" which when checked causes Session Manager to replace existing tabs when a session is loaded instead of appending to them.

  • Open as tabs in current window - When checked, session will default to loading into tabs in the current window instead of into windows. This basically makes loading sessions behave as if Tab Mix Plus's single window mode is enabled, with the main difference being that all the key modifiers and right click menu entries will still work.

  • Reload all restored windows - When checked, the tabs in all restored windows will be automatically refreshed even if the tab's data is in the cache. This will result in the tabs always being up to date, but will cause the session restoration to take much longer.

  • Automatically save replaced session - When checked, any time a session is loaded the current session is saved first to the "Last Replaced session" backup session.


Display:

The display options allow the user to configure how Session Manager displays the session list and the session name format.

  • Order the session list

    • Alphabetically - Sessions are listed in alphabetical order.
    • newest to oldest - Newer sessions are displayed above older ones.
    • oldest to newest - Older sessions are displayed above newer ones.

  • Maximum number of sessions to display in menu - This specifies the maximum number of sessions that will be displayed in the Session list. If this is set to a negative number, then all sessions will be displayed.

  • Format for the suggestions of session names - This is used to fill in the default session name when saving a session. %t is replaced with the active tab's title, %d for today's date and %t for the current time. The title's length can be limited to # characters by putting a number between the "%" and "t" (%#t). The date format defaults to ISO8601 standard, but this can be overridden by specifying a specific format string in quotes after the %d. The format string used is the same as that used for the toLocaleFormat javascript date function. For example, %d"%Y-%d-%m" will use YYYY-DD-MM.

  • ... the name of active sessions to the title bar - This only applies to auto-save and window sessions

    • Append - The active session name is added to the title bar after the browser name.
    • Prepend - The active session name is added to the title bar before the current page title.
    • Do not add - The active session name is not added to the title bar..

  • Do not display Session Manager menu in tools menu - When checked, the Session Manager menu is not displayed in the tools menu.



Undo Close:

The undo close options allow the user to how many close tabs and windows are saved and for how long.

  • Maximum number of closed windows - The maximum number of closed windows that will be saved. If more than this number of windows are closed, the oldest closed window is deleted to make room for the newest one. If set to 0, no closed windows will be saved. The default is 10.

  • Maximum number of closed tabs (per window) - The maximum number of closed tabs per window that will be saved. If more than this number of tabs in a window are closed, the oldest closed tab is deleted to make room for the newest one. If set to 0, no closed tabs will be saved. The default is 10 tabs per window if using Session Manager's closed window list and 3 tabs per window if using the browser's built-in list.

  • List all closed windows and tabs in a submenu - If checked, all closed windows and tabs are displayed in a submenu in the Session Manager menu, otherwise they are displayed at the end of the Session Manager menu.

  • Use browser's built-in closed window list - If checked, Session Manager will use the browser's built-in closed window list instead of it's own list. This is only displayed if the browser has a built-in closed window list, in other words Firefox 3.5 and higher. See the documentation of closed windows for more information about this.

  • Middle Click re-opens last closed tab - If checked, then middle clicking on the tab bar will reopen the last closed tab. This option will not appear if Tab Mix Plus or Tab Clicking Options is installed since those two extensions allow middle click functionality to be customized.

  • Restore the list of reopenable closed tabs for all windows

    • never - Never save closed tabs in sessions even in the backup session created when the browser is shutdown. Also closed tabs will not be restored from saved sessions that had been saved with closed tabs.

    • startup - Never save closed tabs in sessions, but does save them in the backup session created when the browser is shutdown. Closed tabs in saved sessions will only be restored if that session is loaded at startup (either via prompting or by setting that sessions name in the load at startup setting in the General options page.

    • always - Always save closed tabs in sessions and restore them from saved sessions. This is the default setting.

  • Restore the list of reopenable closed windows - Only displayed if "Use browser's built-in closed window list" is checked.

    • never - Never save closed windows in sessions even in the backup session created when the browser is shutdown. Also closed windows will not be restored from saved sessions that had been saved with closed windows.

    • startup - Never save closed windows in sessions, but does save them in the backup session created when the browser is shutdown. Closed windows in saved sessions will only be restored if that session is loaded at startup (either via prompting or by setting that sessions name in the load at startup setting in the General options page.

    • always - Always save closed windows in sessions and restore them from saved sessions. This is the default setting.

  • Don't clear the list of closed windows at shutdown - If checked, Session Manager will save the closed windows list when the browser is shut down, otherwise the closed window list will be deleted. This does not affect closed tabs.

    This option is only available if "Use browser's built-in closed window list" is not checked, since the browser closed window list is always cleared on shutdown unless either Session Manager or the browser is set to load the previous session at startup.
  • Clear List - This clears all closed tabs and windows. Warning, this cannot be undone.


Advanced:

The advanced options allow the user to change the default session folder and enable/disable encryption of session files.

  • Saved Session Location - This allows the user to override the default location for storing saved sessions. The default location is in a "sessions" folder in the user's profile. Note that modifying the saved session location does not copy existing saved sessions files to the new location specified. They must be copied manually.

  • Encrypt saved session and closed window data - When this is toggled, all existing sessions will be encrypted or unencrypted depending on whether the box is checked or unchecked. While this option is checked, any sessions that are saved will be encrypted, otherwise they will not be. There are a few caveats:

    • The sessions are encrypted using the encryption key stored in the key3.db file in the user's profile. This means that sessions can only be read in profiles that contain identical copies of the key3.db file.

    • If the browser is set to use a master browser password, then this password must be specified in order to load and save sessions. If the master password is not entered correctly when loading a session, the session will not load. If it is not entered correctly when saving a session or closing a window, the session or closed window will be saved, but not encrypted.

    • If the user manually puts an unencrypted session file in the session folder after the encryption checkbox was checked, that session file will not be encrypted. To fix this, uncheck the checkbox, hit apply and the check the checkbox again and hit apply.

  • If encryption fails, do NOT save data unencrypted - If this is not checked and Session Manager fails to encrypt session or closed window data for whatever reason, Session Manager will still save the data, but leave it unencrypted. If this setting is checked, Session Manager will not save data that fails to encrypt and will simply discard it. This will result in data being lost if encryption fails, which will happen if the user does not enter the master browser password when prompted. I do not recommend checking this box unless security and privacy is more important to you than having your data saved reliably.

  • Disable cache fixer feature - By default Session Manager will prevent Firefox from deleting all the disk cached data on a crash and only the cached data from the crashed session will be lost. Check this box to disable this feature and let Firefox clear the cache on a crash. Note that the cache fixer feature will not clean up orphaned cached files when recovering from a crash, but these files will eventually be deleted or replaced as you browse. This functionality is based off of Cache Fixer. See also Firefox bug 105843.


SessionStore:

The sessionstore options allows the user to change the browser's hidden SessionStore options.

  • Enable Crash Recovery - This sets the browser.sessionstore.resume_from_crash preference. When checked, Firefox's built in crash recovery is enabled, otherwise it is disabled. Session Manager cannot recover from crashes or backup crashed sessions unless this is enabled.

  • Minimum time interval between two saves (in seconds) - This sets the browser.sessionstore.interval preference. It controls how often Firefox backs up the session data to disk. The default is 10 seconds. There should be no reason to change this setting when running Firefox from a hard drive.

  • Maximum amount of POSTDATA to be stored (in bytes; -1 for all) - This sets the browser.sessionstore.postdata preference. POSTDATA is data that gets sent to servers when submitting forms. This includes files uploaded via forms. As a result, the amount of POSTDATA can be very, very large. For example, uploading a 5 MB file using a form will result in about a 6 MB of session data. In addition, loading a session with POSTDATA in it, will result in the form being automatically posted again. This can have negative results on forms that should not be submitted more than once. So for security and performance reasons it is highly recommended that you not change this setting or if you do, that you not set it to -1

  • Save sensitive data (form data, POSTDATA and cookies for - This sets the browser.sessionstore.privacy_level preference. This settings takes preference over all other related Session Manager settings (except the POSTDATA setting above).

    • all site - This will save sensitive session data for all sites, including secure sites. It is highly recommended that you do not use this setting since it can result in re-submitting data to secure sites and can cause duplicate transactions to take place. Basically you should use extreme caution when setting this.

    • unencrypted sites only - This will save sensitive session data only for unencrypted (not https://) sites. This is the default setting.

    • no sites at all - Sensitive session data will never be saved. This basically turns sessions into glorified bookmarks.


Logging:

The logging options allows the user to enable logging and choose what gets logged. Logging should normally be disabled unless something isn't working correctly and the user is requested help from the developer.

For questions or comments about Session Manager, please post a message to the sessionmanager feedback thread.
Copyright © 2000-2007. All rights reserved. Terms of Use & Privacy Policy.