desktop-files-not-to-save

desktop-files-not-to-save is a variable defined in `desktop.el'.
Its value is
"\\(^/[^/:]*:\\|(ftp)$\\)"


Documentation:
Regexp identifying files whose buffers are to be excluded from saving.

You can customize this variable.