How Can You Stop Browser Notifications from Exposing a Shared Computer Session?
A website you allowed to send notifications can show message previews to anyone near a shared screen. Here is how to refuse permissions, clean up afterwards and keep sessions separate, and why a VPN does not hide any of it.
10 min readUpdated Nov 13, 2026By XPASS Editorial Team

You open a shared computer to check one message, tick Allow on a pop-up without thinking, and carry on. An hour later someone else sits down at the same machine, and a preview of your email or chat appears in the corner of their screen. Nothing was hacked. A permission you granted for convenience is simply still active, and it prints your private messages where other people can read them.
This article is about those small, practical leaks: what browser notifications are, how they end up exposing a session, and the habits that stop it. The fixes are about permissions, signing out and separating profiles, not about network tools. A VPN is useful in other situations, but as we explain below, it does not hide anything that is drawn on a screen. For the wider picture of what the browser itself keeps, see web browser privacy vs VPN.
What browser notifications are and how they work
A browser notification is a small pop-up that a website can show outside its own tab. You usually meet it as a message in the corner of the screen: new email, a chat reply, a reminder, a news alert. To do this, the site first asks your permission. The browser shows a prompt with choices such as Allow and Block. If you allow it, the browser stores that decision for that website in your browser profile.
Two details matter on a shared computer.
- The permission belongs to the browser profile, not to you as a person. If someone else uses the same browser profile on the same computer account, they inherit every permission already stored there.
- The pop-up is drawn by the computer, not by the website. The site hands a short text to the browser, and the browser hands it to the operating system, which displays it. It appears over whatever else is on the screen, including a slideshow, a shared screen in a video call or a document someone else is reading.
Depending on the site and the browser, notifications may keep arriving even after you close the tab, as long as the browser (or one of its background processes) is still running. That is why a notification can appear when you thought you had finished. Settings and wording differ between browsers, operating systems and versions, so treat the steps in this guide as a pattern and look for the equivalent in your own settings.

How notifications expose a shared session
There are a few distinct ways a notification can leak something on a shared machine. It helps to keep them apart, because each has a different fix.
Message previews on screen
The most direct leak is the preview itself. An email notification may show the sender and the first line of the message. A chat notification may show the contact name and the text. A banking or shopping site may show an amount or an order name. Anyone looking at the screen, standing behind the chair or sitting down next, can read it.
A permission left behind
If you clicked Allow on a shared computer, the permission stays in that profile until someone removes it. The next person never sees a prompt, because the choice has already been made. This is the scenario that surprises people most: the next user did nothing, and still receives alerts for a site they never visited.
A site that stays signed in
A notification often comes from a site where a session is still open. If you did not sign out, your account remains reachable in that browser, and the alert may even act as a shortcut that reopens the page you were using. Clicking it can take the next person straight into your inbox.
Screen sharing and projectors
Notifications show up in presentations too. If you share your screen in a meeting, or connect to a projector in a shared room, a pop-up can display to the whole audience. This is not specific to shared computers, but it is common wherever a screen is visible to more than one person.
What a VPN does and does not do here
It is worth being plain about this, because VPN marketing can leave people with the impression that a VPN makes everything private. A VPN encrypts the traffic between your device and the VPN server and changes the address that websites see for your connection. That can help on untrusted networks. You can read more in what a VPN cannot protect you from.
None of that touches a notification. The text of the pop-up is created and drawn on the computer in front of you. It would look exactly the same with or without a VPN, on any network. A VPN also does not remove a stored notification permission, sign you out, or stop another person from reading a screen. On a computer you do not own, a VPN app is usually not even an option, because installing software on a shared machine is rarely allowed and not a good idea.
So the useful controls here are the ordinary ones: refusing permissions, ending sessions and keeping profiles separate. They cost nothing and work on any network.
Practical steps: refuse and review notification permissions
These steps assume a browser with a settings page for site permissions, which all mainstream browsers have, although the menu names vary.
Refuse every prompt by default
On a shared computer, treat every notification prompt as a request to leave something behind. Choose Block, or close the prompt without allowing it. Many browsers can also be set to stop showing notification prompts at all, so you never have to decide in the moment. In your browser settings, look for a section called something like Privacy and security, Site settings or Permissions, then Notifications, and choose the option that blocks sites from asking.
Check what is already allowed
Open the same Notifications settings page and read the list of sites that are allowed to send notifications. On a computer you use often, remove anything you do not recognise or do not need. On a computer you use rarely, remove every entry for an account that handles mail, chat, banking or shopping. Removing a site from the list resets its permission, so it will have to ask again.
Switch off the site's own notifications first
Many services have their own notification options in account settings. If you can, turn those off before you sign out on a shared machine. That way, even if a browser permission were left in place, the service has been told to stop sending alerts to that device.
Turn off previews at the system level
Operating systems let you hide the content of notifications while still showing that one arrived, or switch notifications off for a period. Look for system settings such as notifications, focus or do-not-disturb modes, and options named along the lines of show previews or show notification content. Hiding previews means that even if something does appear, it says little. If you are about to present or share your screen, turn on a do-not-disturb mode first.
Practical steps: sign out and close the session properly
Notifications are one thing; an open session is the bigger risk. These habits make the two problems smaller together.
- Open a private window for the visit. A private or incognito window is designed so that history, cookies and site data are discarded when the window closes. Browsers differ in details, so read your browser's own explanation, such as Mozilla's private browsing guide or Chrome's private browsing page. A private window is a help, not a guarantee. See VPN and private browsing for the difference between the two.
- Do not tick remember me or save password. If the browser offers to store a password, decline.
- Block notifications at the first prompt. If a site asks, choose Block.
- Sign out of every account, using the site's own sign-out button. Closing the tab is not signing out.
- Close the private window completely. Quit the window, not just the tab, so the temporary data is discarded.
- Check downloads. Delete any file you saved, including from the recycle bin or trash if the computer has one.
- Look at the permissions list once more. If you had to allow something, remove it before you leave.
- Change the password later, from your own device, if you signed in to anything sensitive. Turn on two-factor authentication where it is offered; the CISA guidance on multi-factor authentication explains why it is worth doing.
If you travel and have to use hotel or airport machines, read using shared computers while travelling for a fuller checklist, including how to avoid signing in at all.
Use separate profiles and accounts
Where you can control the setup, such as a home computer shared by a family, a school laptop or a small office, separating people is more reliable than cleaning up after each session.
Operating system accounts
The strongest separation is one operating system account per person. Each account has its own browser data, its own notification permissions and its own settings. When one person signs out, the next sits down in an entirely separate environment. Fast user switching lets someone else use the computer without ending your session, but remember to lock or sign out the account you are not using.
Browser profiles
If separate system accounts are not practical, browsers offer profiles. A profile is a separate set of bookmarks, saved logins, cookies and site permissions inside the same browser. Create one for work, one for family use and one for guests, and keep notification permission off in the shared ones. A guest profile, where your browser offers one, is designed to discard its data when it closes.
Keep sensitive accounts in one place
Pick the one profile or device where you keep sensitive services, such as email and banking, and do not sign in to them anywhere else. A short list of places where an account can be open is easier to check than a long one.
A password manager helps with passwords, not with sessions
A password manager reduces the temptation to let the browser save logins. It does not close sessions or revoke notification permissions. See VPN and password managers if you want to understand how the two relate. This is also a good reminder that no single tool covers everything on this topic.

A plain example
Mina uses a shared desktop in a small shared office to check her personal email during lunch. She opens a private window and signs in. The site asks to show notifications and she clicks Allow so she will not miss a reply from a landlord.
She finishes and closes the tab, but never signs out. In the afternoon a colleague sits down at the same computer. The browser is still running in the background. A pop-up appears at the corner of the screen: the sender's name and the first line of a message about a rental deposit. The colleague did nothing wrong, and Mina never intended to share it.
Here is how the same lunch break could go with the habits above. Mina opens a private window and blocks the notification prompt. She reads her mail, uses the sign-out button, quits the private window, and takes a quick look at the notification permissions list to confirm nothing was added. Nothing is left behind and nothing can appear on the next person's screen.
Notice that no network setting was involved. A VPN would not have changed either version of the story.
Limits and what to watch for
Even good habits have limits, and it is better to know them than to assume you are covered.
| Situation | What helps | What does not help |
|---|---|---|
| Preview appears on screen | Block prompts, hide previews, use do-not-disturb | A VPN |
| Permission left from an earlier visit | Review and remove site permissions | Closing the tab |
| Session still open | Use the site's sign-out button | Closing the browser window |
| Someone else shares your account | Separate system accounts or profiles | A private window alone |
| Keylogger or screen-recording software on the computer | Do not sign in on that machine | Any browser setting or a VPN |
| Screen visible to others | Do-not-disturb, screen position, privacy filter | Notification settings alone |
A few more points deserve honesty.
- You cannot see everything on a computer you do not control. If the machine has malicious software, no browser setting rescues you. The right answer is to avoid signing in to sensitive accounts there.
- Browser behaviour differs and changes. Prompts, menu names and the way private windows treat permissions vary between browsers and versions. If a step above does not match what you see, look up your browser's own help pages rather than guessing.
- An employer or school may manage the computer. On a managed machine, administrators may control settings and may be able to see activity. Follow the rules you were given and use only your own personal device for personal matters.
- Notifications on your own phone and laptop matter too. The same hygiene applies when a phone is propped up in a cafe or a laptop is connected to a television. Turning on do-not-disturb before presenting is a good habit everywhere.
- Think about the people looking. Sometimes the person who can see your screen is a flatmate, a child or a colleague, and the fix is simply positioning the screen differently.
For a broader way to decide which risks are worth worrying about, EFF Surveillance Self-Defense offers practical, plain-language threat-modelling guidance.
A short routine you can remember
If you only remember one list, make it this one.
- Before: open a private window or guest profile, and decline saved logins.
- During: choose Block on any notification prompt.
- After: sign out with the site's button, close the private window, delete downloads and check the permissions list.
- Later: change passwords from your own device if you signed in anywhere sensitive.
- At home: give each person a separate account or profile and turn off previews.
The routine takes about a minute, and it prevents the kind of quiet leak that people usually discover only when someone mentions it.
Summary
Browser notifications are drawn on the screen of the computer you are using, so a stored permission can show previews of your messages to the next person who sits down. The fix is local and simple: block prompts, review and remove site permissions, hide previews, sign out properly and keep people on separate accounts or profiles. A VPN does not hide on-screen notifications or end a session, so it should be a separate decision from the habits in this guide. If you also want to protect your own device's connection on networks you do not trust, you can look at the options on the XPASS pricing page.
Frequently asked questions
Can a website send notifications to a shared computer without my permission?
Browsers ask before a site may show notifications, so a site normally needs you (or someone using your browser profile) to click Allow first. The risk on a shared machine is that a previous user, or you on an earlier visit, already clicked Allow, and the permission is still stored in that profile.
Does a VPN hide browser notifications on my screen?
No. A notification is drawn on the screen of the computer by the browser and the operating system. A VPN works on the network traffic that leaves a device, so it has no effect on what appears in a pop-up beside the clock or in the corner of the display.
Is signing out enough to stop notifications from an account?
Not always. Signing out of a site ends your session, but the notification permission and any push subscription can remain in the browser profile. Remove the site permission and, where the site offers it, switch notifications off in the account settings before you sign out.
Do private windows stop notification problems on a shared computer?
They help, because a private window is designed to discard site data when it closes. Behaviour differs between browsers and versions, so do not rely on it alone. Still refuse every notification prompt and sign out of anything you opened.
What is the safest way to avoid notification leaks on a computer I share with family?
Give each person their own operating system account or browser profile, keep notification permission off for email and chat sites, and turn off message previews in the system notification settings. Separate profiles keep one person's alerts from appearing in another person's session.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Privacy Guides
Private Browsing Checklist Beyond Using a VPN
A VPN is one layer of private browsing. This checklist walks through browser, account, cookie, fingerprint, DNS and device settings so you know what each layer really does.
9 min read

Device Guides
Browser Privacy Settings vs VPN Protection
Browser privacy settings and a VPN guard against different things. This guide maps each threat to the tool that actually addresses it, so you can use both sensibly.
10 min read

VPN Security
Using Shared Computers While Travelling
Hotel business-centre, internet-cafe and lounge computers are handy for printing, but risky for logins. Here is how to avoid signing in, what to do if you must, and why a VPN on your own device does not help.
10 min read