General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Once again about sessions and definitions
Posted by: rodocop
Date: July 02, 2015 04:59PM

I've asked this already, but got no answer.

What is the difference (from the user side) between 'Last Session' and 'Previous session'?

It's important for me as I'm preparing the localization for Restart2 by JamesD and I need to understand this in order to not misdirect users.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: siria
Date: July 02, 2015 05:47PM

Probably only Dorian can tell for sure for KM75.

All I know is the difference in older KM versions, where the "Last Session" was actually the current one, therefore hidden in the menu. The trick was that at each browser start, KM looked up whether it had crashed at last exit or not, and if NO it first deleted the "previous" prefs, then renamed "last" to "previous". But in case of crash it left things as they are and the "previous" session was now actually the "last session that didn't crash", usually the pre-previous one.

But have no clue about the new system now in KM75, simply due to lack of own practice. Perhaps just test what happens after crashing the browser intentionally via task manager.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: Dorian
Date: July 02, 2015 11:07PM

Previous session save the state of kmeleon at the last clean shutdown.
Last session is for crash recovery, more like current session in fact.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: rodocop
Date: July 02, 2015 11:34PM

Thank you both!

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: Zero3K
Date: July 03, 2015 06:14AM

Quote
Dorian
Previous session save the state of kmeleon at the last clean shutdown.
Last session is for crash recovery, more like current session in fact.

I've been noticing all sessions are being deleted when it crashes every now and then.



Edited 1 time(s). Last edit at 07/03/2015 06:15AM by Zero3K.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: Dorian
Date: July 03, 2015 04:48PM

You seem to be the only one losing data when crashing. Are you sure you don't have a problem with your file system ?

There should be a backup file for the sessions, but a bug can prevent its creation. You have to create "sessions.json.bak" manually in your profile folder, then start and close kmeleon.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: siria
Date: July 03, 2015 07:12PM

Quote
Dorian
You have to create "sessions.json.bak"
Just thinking, would it be possible to add the date/time to the name?
Otherwise am afraid it's too easily overwritten when a user isn't aware of it and crashes a second time. Or perhaps a numbered name, bak, bak(2), ...

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: Zero3K
Date: July 06, 2015 02:06PM

Quote
Dorian
You seem to be the only one losing data when crashing. Are you sure you don't have a problem with your file system ?

There should be a backup file for the sessions, but a bug can prevent its creation. You have to create "sessions.json.bak" manually in your profile folder, then start and close kmeleon.

My profile is located on a RAM Disk.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: JamesD
Date: July 06, 2015 10:04PM

Quote
Zero3K
My profile is located on a RAM Disk.

How do you keep personal settings?

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: Dorian
Date: July 07, 2015 05:00PM

Quote
Zero3K
My profile is located on a RAM Disk.

You're asking for trouble.

I've just experimented my first session loss because of a ... full disk. Need to fix this, the json writer don't seem to care about write failure.

Options: ReplyQuote
Re: Once again about sessions and definitions
Posted by: Zero3K
Date: July 12, 2015 01:14AM

Quote
Dorian
Quote
Zero3K
My profile is located on a RAM Disk.

You're asking for trouble.

I've just experimented my first session loss because of a ... full disk. Need to fix this, the json writer don't seem to care about write failure.

Why am I asking for trouble?

Options: ReplyQuote


K-Meleon forum is powered by Phorum.