...

View Full Version : loading pages when user exits



goldingh99
10-23-2005, 03:21 PM
Is there a javascript code for loading php pages when the user exits the forum?

For example I am writing a webpage where I would like it to run the logout script when the user exits the forum, if they have not already logged out. Is this possible to do with JavaScript? (using sessions in forum not cookies).:confused:

martin_narg
10-23-2005, 09:09 PM
Simply put, all logins should be done using a server-side language. If the user closes the browser, the session is lost and therefore "logged out". Blend your website login and forum login scripts together and include them on all pages in your website. JavaScript is not a secure language and should never be used for security.

Hope this helps

m_n

goldingh99
10-24-2005, 02:35 PM
oh sorry probably did word the question right i didn't mean that the forum was attached to a website, its just so that when the user exits the forum or browser, i wanted it to run a certain page and I thought maybe you could use JavaScript but I maybe mistaken. Should php be used instead?

felgall
10-24-2005, 11:22 PM
When a person closes their browser there is nothing running to process any further code at all.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum