Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Chrome offers to restore the last session when it did not shutdown properly (power outage, Chrome crashed, ...).

How do I disable that? (Setting or command line switch)

I'm using a batch file that starts (among other things) chrome in kiosk mode for a single page on windows startup. Even after power outage etc. it should only launch that page without the ruckus.

share|improve this question
1  
It might not be possible to disable it. If you are using a batch file, I would simple delete the file that handles the session, before you launch Chrome. –  Ramhound Aug 13 '12 at 12:40
    
@Ramhound Which file(s) would that be? "User Data\Default\Current Session" and "User Data\Default\Current Session" don't seem to make a difference. Neither does "User Data\chrome_shutdown_ms.txt". –  riha Aug 13 '12 at 13:04
    
@riha simply clearing history and sessions before closing the browser will solve your problem and there were some third party tools which would automatically wipe history when your system is restarted –  BlueBerry - vignesh4303 Aug 13 '12 at 13:04
    
A power outage prevents clearing history / sessions. Deleting the whole profile folder works, but that feels like a bit too much... –  riha Aug 13 '12 at 13:30

4 Answers 4

up vote 6 down vote accepted

I know this is old but I thought it would be helpful to others that may come across this.

I had this issue and tried the flags settings but that did not help. adding --incognito to the command did resolve the issue.

chrome.exe --kiosk --incognito some.web.site

I tried this in various fashions of crashing Chrome and pulling the power to the PC. In all tests the system would power up and go into kiosk mode without the frown face error message.

share|improve this answer
    
Is this any different than @Dom's answer? –  Andrew Lott Jul 12 '13 at 13:39
1  
note, incognito mode disables caching, so if that's important for your application this is not a great option. –  ericsco Oct 24 '13 at 19:43

Try this

  • go to chrome://flags/
  • then click Enable on the link that writes: "Disable Better session restore"

I hope this helps

share|improve this answer
    
Looks like they removed this flag... (Windows Chrome v38), bummer. –  Ben Roberts Oct 28 at 18:22

Someone has suggested just running Chrome in Incognito mode to get around the problem here. If you are running in full screen mode and redirecting to a specific page that shouldn't be noticeable. I know that's a bit of a work around.

share|improve this answer
    
That certainly provides some helpful info, thanks. My current workaround is to delete the whole profile folder before starting chrome. Incognito is probably the better choice. I'll report back. –  riha Aug 15 '12 at 5:39
1  
note, incognito mode disables caching, so if that's important for your application this is not a great option. –  ericsco Oct 24 '13 at 19:44

try this line

chrome.exe --kiosk --disable-session-crashed-bubble "http://example.com"

For more detailed information

http://peter.sh/experiments/chromium-command-line-switches/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.