Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 27th, 2000, 04:49 AM
nickd nickd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 nickd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How can I close a users browser when required - with out needing confirmation from the User ?

Is this possible ?

I need to close users down after a time out period.

Thanks

Nick

Reply With Quote
  #2  
Old October 31st, 2000, 12:29 PM
eaamj01 eaamj01 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Colchester, England
Posts: 131 eaamj01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 8 sec
Reputation Power: 9
I glanced over an article in the MSDN newspaper with a similar question. One of the solutions was to redirect the browser to a "logoff" page after a set time of inactivity (refresh to a new location). I will dig out the article and post the exact solution but this may give you something to go on.

Andy J

Reply With Quote
  #3  
Old October 31st, 2000, 02:07 PM
nickd nickd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 nickd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks - let me know

Reply With Quote
  #4  
Old November 2nd, 2000, 07:52 AM
eaamj01 eaamj01 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Colchester, England
Posts: 131 eaamj01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 8 sec
Reputation Power: 9
At last I have dug the solution from MSDN:

<META HTTP-EQUIV="REFRESH" CONTENT="1200;URL=http://MyServer/Logoff.php">

This tag redirects the browser to Logoff.php after 20 minutes (1200 seconds) if it is not refreshed or if another page is not loaded. Keep in mind that the page is redirected automatically if it has not been refreshed. If the user has taken actions on the page that did not result in the page being refreshed, the redirection still occurs.

Andy J

Reply With Quote
  #5  
Old November 2nd, 2000, 07:37 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>At last I have dug the solution from MSDN:

That does just redirection and doesn't close the user's browser at all.

Reply With Quote
  #6  
Old November 3rd, 2000, 04:19 AM
eaamj01 eaamj01 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Colchester, England
Posts: 131 eaamj01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 8 sec
Reputation Power: 9
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by freebsd:
>>At last I have dug the solution from MSDN:

That does just redirection and doesn't close the user's browser at all.
[/quote]

Sorry, I forgot to say that the redirection to Logoff.php would execute a php script that would sever links, sessions, databse connections or what ever needs closing. This solution does answer Nick's question:

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by nickd:
>>I need to close users down after a time out period.

Thanks

Nick
[/quote]



Closing the users browser isn't something most users would be very happy about. So I think a reasonable compromise would be a redirection to a logoff script.

Andy J.


[This message has been edited by eaamj01 (edited November 03, 2000).]

Reply With Quote
  #7  
Old November 3rd, 2000, 09:41 AM
nickd nickd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 nickd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I think we'll just let the session time out on the Server and so force a re-login on the client .... much eaiser .....

but Thanks for your help

Nick

Reply With Quote
  #8  
Old November 4th, 2000, 08:27 PM
SiS SiS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Denmark
Posts: 69 SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 3 m 19 sec
Reputation Power: 13
Send a message via ICQ to SiS
hmm can't you use the javascript code
self.close() ??

it'll promt you if you have a "normal" browser window if you really wanna close the window, but if you have poped a new window, with the
window.open("site.htm","title","width=500,height=300");
and on the page "site.htm" uses the self.close() it'll just close the window.

is this about what you're looking for??

regards
Simon

Reply With Quote
  #9  
Old November 5th, 2000, 06:01 AM
nickd nickd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 nickd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks, but I need to close the users main browser with OUT asking or a prompt.

pop-up are no problem.

Nick

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > Closing a Users Browser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT