First, make sure that the "Remember current session for next launch" option is enabled. If it does not take effect, check in turn: 1. Check whether the "Remember current session for next launch" under the backup tab in the settings is checked; 2. Confirm that %APPDATA%\Notepad \session.xml exists and is updated when closed. If it is damaged, rename it and restart it to generate a new file; 3. The session may not be restored after the update. Restart once can usually be solved. It is recommended to use the latest version of the official website; 4. Temporarily disable all plug-ins or rename the plug-in folders to eliminate conflicts. Common problem plug-ins include NppExport, Explorer, etc.; 5. Ensure that the normal exit rather than force closing, otherwise the session cannot be saved; 6. If insufficient permissions make it impossible to write to the configuration folder, try running as an administrator or adjusting folder permissions; 7. If the automatic recovery still fails, manually save and load the session using "File > Save Session" as a reliable alternative. Summary: Confirm that the options are enabled, the file is normal, there is no plug-in conflict, correctly exit and have write permissions, and the session memory function can usually be repaired.
If Notepad "Remember current session" is not working — meaning it doesn't restore your open files and tabs when you restart the app — it's a common issue that can usually be fixed with a few checks and adjustments. Here's how to troubleshoot and fix it:

? 1. Check Session Settings in Notepad
First, make sure the option is actually enabled:
- Open Notepad
- Go to Settings > Preferences
- Navigate to Backup tab
- Look for the Session snapshot and periodic backup section
- Ensure Remember current session for next launch is checked
?? If this is unchecked, Notepad won't restore your last session — no matter what.
![]()
? 2. Verify the Session File Exists and Isn't Corrupted
Notepad stores session data in an XML file. If this file is missing or corrupted, the session won't restore.
- The session file is usually located at:
C:\Users\[YourUsername]\AppData\Roaming\Notepad \session.xml
? You can access this quickly by typing
%APPDATA%\Notepad
in the Windows Run dialog (Win R)![]()
Check:
- Does
session.xml
exist? - Is it being updated when you close Notepad (check file modified date)?
- Try renaming it (eg, to
session.xml.bak
) and restart Notepad . A new one should be created.
? If a new
session.xml
is created and session restore works, the old file was likely corrupted.
? 3. Disable "Upgrade" Prompts or Version Conflicts
Sometimes, Notepad disables session restore if it detects a version upgrade:
- After updating Notepad , it may skip restoring the session for stability
- This behavior is intentional and temporary
? Fix:
Close and reopen Notepad a second time — the session often loads correctly on the second launch after an update.
Also, ensure you're running the latest stable version from http://ipnx.cn/link/c8997cb7eaa2a24c8344695c19dd1f92 — older versions have known bugs in session management.
? 4. Check for Conflicting Settings or Plugins
Some plugins or custom configurations interfere with session saving.
Try this:
- Temporarily disable all plugins:
Settings > Import > Import from > (uncheck all plugins) - Or rename the
plugins
folder in the Notepad config directory to back it up - Restart Notepad , open some files, close it, then restart again
? If session restore now works, a plugin was the culprit.
Common offenders: NppExport, Explorer, or session-related plugins.
? 5. Ensure Notepad Closes Properly
If Notepad crashes or is force-killed (via Task Manager), it won't save the session.
? The session is saved on clean exit — if the app doesn't close gracefully,
session.xml
won't update.
? Always close Notepad using the X button or File > Exit .
? 6. Permissions Issue?
If Notepad can't write to its config folder, it can't save the session.
Check:
- Can you manually create or edit files in
%APPDATA%\Notepad
? - Right-click Notepad shortcut → Run as administrator (test once)
- If session restore works when run as admin, it's a permissions issue
Fix: Adjust folder permissions or reinstall Notepad to a location with full access.
? 7. Alternative: Use "Save Session" Manually
If automatic restore still fails, use the built-in Save Session feature:
- Go to File > Save Session...
- Save your current tabs as a session file (.nppsess)
- Later, go to File > Load Session... to restore it
This is a reliable workaround, even if auto-restore isn't working.
Summary Checklist
- [ ] "Remember current session" is enabled in Preferences > Backup
- [ ]
session.xml
exists and updates on exit - [ ] No crashes or forced closures
- [ ] Notepad is up to date
- [ ] No conflicting plugins
- [ ] Correct permissions on config folder
If all else fails, consider resetting Notepad settings (backup your shortcuts.xml
, session.xml
, etc. first) by renaming the %APPDATA%\Notepad
folder and restarting.
It's not complicated — but easy to miss one small setting. Usually, just re-enable the session option and doing a clean restart fixes it.
The above is the detailed content of Notepad remember current session not working. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

YoucanmakeNotepadopeninmaximizedmodebydefaultthroughtwomethods.1.CreateashortcutwiththerunstatesettoMaximized,ensuringNotepadopensfull-screenwhenlaunchedthroughthatshortcut.2.UseanAutoHotKeyscriptthatautomaticallymaximizesNotepadwindowssystem-wide,re

WindowsdoesnotallowchangingNotepad’sicondirectlythroughsettings,butitcanbecustomizedviashortcutsoradvancedregistryedits.1.Tochangetheshortcuticon,createadesktopshortcutfornotepad.exe,right-clickit,selectProperties,clickChangeIcon,andchooseorbrowsefor

To change the text encoding in Notepad, select it via the Encoding option in the Save As menu. The specific steps are as follows: 1. After opening the file, click "File>Save As"; 2. Find the "Encoding" drop-down menu at the bottom of the dialog box; 3. Select the required format such as UTF-8 or ANSI; 4. Save as the original file or new file. Different encoding uses vary: ANSI is suitable for legacy systems, UTF-8 is suitable for web and cross-platform compatibility, Unicode (UTF-16LE) is used for Windows applications, and UTF-8 has no BOM for certain tool preferences. Check the current encoding to view the drop-down menu display by opening Save As again. Although Notepad has limited functionality, basic editing

Notepad itself cannot create or spread malware directly, but it can be abused as a tool for writing malicious scripts. ① It can only edit plain text files such as .bat, .vbs, etc. If these files contain executable code, they may be used for malicious purposes; ② For example, using .bat to delete the content of the specified directory, disguising it as a game to induce clicks to run; ③ Preventive measures include not running unknown scripts, enabling firewall anti-virus software, restricting user permissions, and disabling some script types. In real cases, beginners or attackers use notepad to write disruptive scripts, so the key is how the user uses it rather than the tool itself.

Notepad does not support direct case-sensitive searches, but can be achieved through alternative tools or workarounds. 1. Notepad is case-sensitive when searching by default, and the settings cannot be changed; 2. Use Notepad to truly realize case-sensitive search, by checking the "Case-sensitive" option; 3. Native Notepad can assist in marking target text through replacement functions, but the effect is limited; 4. It is recommended to use more powerful editors such as Notepad or VSCode for long-term needs.

To prevent Notepad from automatically adding .txt extensions, wrap the file name in quotes when saving and select All Files in the Save Type drop-down menu. The specific steps are as follows: 1. Enter a quoted name in the file name field of the "Save As" dialog box, such as "config"; 2. Select "All Files" from the "Save Type" drop-down menu to disable the behavior of automatically adding extensions; 3. Note that Windows may hide known extensions. You can check "File Name Extension" in the "View" tab of File Explorer to confirm that the saving is correct. Follow these steps to ensure that Notepad saves files in the specified format without automatically adding the default .txt extension.

Yes, you can create custom notepad shortcuts with command line parameters. First, right-click on the desktop or folder, select "New" > "Shortcut", and enter notepad.exe in the location bar; then right-click the shortcut and select "Properties" and add command line parameters in the "Target" field, such as: C:\Windows\System32\notepad.exeC:\Users\YourName\Documents\example.txt to open a specific file; although Standard Notepad has limited support for command line options, you can still implement functions such as opening files directly, opening files in read-only mode, and using wildcards to open multiple files at once;

Notepadcommonlyuses.txtforplaintextnotes,.logforsystemlogs,and.ini/.cfg/.confforconfigurationfiles.Notepadsupportsvariousfileextensionsprimarilyfocusedonplaintext.First,thedefaultextensionis.txt,usedforbasictextwithoutformatting.Second,.logfilesareut
