In our website, there some pages that could be accessed only by members. So if member want to access this pages they have log in first. The problem is, when they log out, if they don't close the browser, anyone could press 'Back button in the browser then access the members' pages. Can anybody give me a hint, how to prevent this? I could be inform members to close browser when they log out, but just in case they forget this :) FYI, I used exUserFolder to provide authentication to our site. Thanks. -mico-
Just a thought: are you sure that your server DOES send HTTP headers correctly? It should send these: Cache-Control: no-cache, must-revalidate; (prevent caching via HTTP/1.1) Pragma: no-cache; (prevent caching via HTTP/1.0) And using HTML meta-tags: <meta http-equiv="Cache-Control" content="max-age=0"/> Zope should destroy sessions on logout, and if that is done correctly, these should work.. -Mac -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Mico Siahaan Sent: Tuesday, April 22, 2003 12:10 PM To: zope@zope.org Subject: [Zope] Newbie question: Log out completely In our website, there some pages that could be accessed only by members. So if member want to access this pages they have log in first. The problem is, when they log out, if they don't close the browser, anyone could press 'Back button in the browser then access the members' pages. Can anybody give me a hint, how to prevent this? I could be inform members to close browser when they log out, but just in case they forget this :) FYI, I used exUserFolder to provide authentication to our site. Thanks. -mico- _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Mico Siahaan wrote at 2003-4-22 17:10 +0700:
In our website, there some pages that could be accessed only by members. So if member want to access this pages they have log in first. The problem is, when they log out, if they don't close the browser, anyone could press 'Back button in the browser then access the members' pages.
Can anybody give me a hint, how to prevent this? I could be inform members to close browser when they log out, but just in case they forget this :)
There is no solution to this problem. It is not Zope related. All environments have this problem. MS Windows tries to work around it by locking the screen after some inactivity. That's the best you can do about it. You can emulate this approach with a timeout for login information. I do not know whether there already is such a user folder, but it would not be too difficult to adapt an existing one. Dieter
participants (3)
-
Dieter Maurer -
Jan Maška -
Mico Siahaan