Not being too familiar with this stuff, it would seem that using cookies in
the application would take care of most of the problem. Also setting up a
login script on the server would work.
With the the cookie approach if the user logs out the client side
application you served up would write back to the cookie that the user has
exited. Since the cookie is stored on the client machine any further attempt
to access the site would prompt to please login again. Cookies could also
contain a time out (in activity period) that would automatically expire if
the client app has a timer running in it. That should cover both single and
multiple tab browsers.
On the server side simple log in aunthication should also be able to handle
the process. While we do not use a log out process on our server (Apache)
we do have a log in requirement. We have established various levels of
login. These are automatically reset once every 24hr or if the client
computer is rebooted, the user is prompted to log in again.
Just some thought, don't know if they are helpful
Claus
Post by Horacio EcheverriaThanks Ronnie,
Yes, I have been all over the web in search of a real solution and there
are some bandaids to try to deal with this. The problem here is that the
issue is a client-side problem, and I don't see any server-side
application helping in any way to solve it. Some browser work with some of
the solutions and some don't. Well, I guess I will try a mix of some of
them.
Thank you
On Wed, 19 Nov 2008 00:21:58 -0500
Post by Horacio EcheverriaThe problem here is that if I go to the history, I can still go to the pages
I was before the last one, (except the last one of course). And if I do a
refresh from any of those late pages after I logoff, they can retrive the
session as if I'm logged in, without going to the proper login form. I guess
this has to do with the cache but the problem also is if I'm in session, I
should be able to go back to the last pages visited but when I'm out I should
not. I'm stuck!
The problem is actually worse than you describe. With modern tabbed browsers,
and people leaving tabs open between browsing sessions and the browser set to
restore, you can not only close your browser, but also switch off the machine
and guess what .... open up the browser next time and the previous session is
restored allowing you access from where you left off.
This is a huge security concern, and I have spent a significant amount of time
developing a PHP/MySQL to deal with this as well as a host of other security
related issues.
The key to the problem you describe is to ensure a user log in times out after
a pre-defined period of inactivity, but I can tell you that a proper
implementation of this in addition to other features has become an application
in its own right!
--
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.uk