• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

How can I timeout a browser session?

Situation: The company runs a web filter & quotas are applied to our users. One user sometimes forgets to close the browser & the website he has open possibly has ads which refresh regularly & uses up his quota. Is there a way to force a timeout after a certain amount of idle time, perhaps through an app or plugin?
0
Gijima
Asked:
Gijima
  • 4
  • 4
  • 3
1 Solution
 
ZvonkoSystems architectCommented:
The Ads are not on your ColdFusion web server pages, right?
Then you cannot close other domain pages or stop their processing.
0
 
GijimaAuthor Commented:
no these are internet web pages, of which most of them have ads these days, I don't know why my question is appearing in the coldfusion zones as I didn't choose it.
0
 
ZvonkoSystems architectCommented:
If you can Inject this line in your pages then would the alert() make the page so busy that no loading will occur until OK is clicked:
<script>setInterval("alert('No activity for five minutes');",30000);</script>

Open in new window

The 30000 are thirty seconds for Test. Make it 300000 for five minutes.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Hendrik WieseInformation Security ManagerCommented:
You can try the following:

This JavaScript code will automatically close a browser window on the time event period you specify.

Insert the following code into your <HEAD> tag area.

<!--
// == This Script Free To Use Providing This Notice Remains == //                                                                 
// == This Script Has Been In The http://www.DesignerWiz.com Javascript Public Archive Library == // 
// == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == //
--><script language="JavaScript" type="text/javascript">
<!--
var sec = 0;
function closewindow() {
sec++;
if (sec == 10) {
window.parent.close();
}
window.setTimeout("closewindow();", 1000);
}
//-->
</script>

Open in new window


Install this into the <BODY>tag:

onLoad="closewindow();

Open in new window


Reference Site
0
 
GijimaAuthor Commented:
Ok I think you guys might be misunderstanding. The user is visiting websites on the internet, I don't have ownership or control of those websites & thus cannot change/install any code on them. Let me give an example: the user visits a website (on the world wide web) & he then receives a phone call for an emergency he has to attend to. He then gets up off his chair & rushes out of his office, leaving his browser window open. The website may have ads on it (as most of them do these days) & keeps using up the bandwidth allocated to the user via the quotas we assign to his account. I want a way to either, timeout his browsing session or even perhaps closing the browser after say perhaps 10 minutes of inactivity. I am not a web developer so I'm looking for an app or plugin that I can configure via buttons or menus, I don't want to have to code anything.
0
 
ZvonkoSystems architectCommented:
0
 
Hendrik WieseInformation Security ManagerCommented:
One way to do it would be to create a GPO that logs the user's off from windows if they are inactive for a specific amount of time.
0
 
Hendrik WieseInformation Security ManagerCommented:
If you want you can have your users use Google Chrome and install the following extension called Tab Wrangler:

http://www.jkwebtalks.com/2011/01/automatically-close-inactive-tabs-in.html
0
 
GijimaAuthor Commented:
leechblock seems more like a self imposed web filter, & we are already running a web filter. Tab Wrangler is exactly what I was looking for! I found another plugin which does almost the same called Auto Browser Closer for Firefox, but you can't configure it, so Tab Wrangler is the better option in my opinion. I'll just need to test & see if it considers a tab to be inactive even if the ads on the site refresh periodically.
0
 
Hendrik WieseInformation Security ManagerCommented:
No problem. Do you test and let me know if it helps?
0
 
GijimaAuthor Commented:
I'm accepting this as the solution, as it seems to be exactly what I was looking for (pitty it's for chrome only though), I'll test & if it's still not working the way the user wants it to then we'll just look into increasing his bandwidth quota. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now