Contributions

Other (Category Index)
Search: 

Secure Admin Login - Logout

This contribution comes from the inspiration of Jason D. Agostoni who presented his code in an article on "Security and Sessions in PHP". His article and documentation can be found at:
http://www.devarticles.com/c/a/MySQL/Security-and-Sessions-in-PHP/

I converted his code and made it work for the OSCommerce Admin Panel. This is totally PHP based code that uses sessions. There are not any javascripts or .htaccess files in this code. I was looking for code that is non-intrusive in the OSCommerce code structure and this did the job wonderfully!!

I was concerned if this code would conflict with the Admin session ID: osCAdminID. In all of my testing I have not experienced any problems with it at all.

One major security problem that we needed to solve is that anyone can use the backspace button on their browser to get back into secure areas on many web sites after logoff. We have merchants using their shopping carts in their stores where security is important from customers and other employees.

Javascripts only work when people have javascripts enabled and .htaccess allows browsers to use the back button to gain access after logoff. I was able to add some code in the logoff.php file which writes a "logged off" tag to the session ID. This prevents anyone from gaining access again after logoff.

Expand All / Collapse All

Updated SQL file 23 Dec 2010

All credit goes to the original authors. I only modified the SQL file as it was giving a 1136 error when trying to run the SQL. After reviewing the code the one in last package left out the 1 and 2 before username in the INSERT INTO areas of the command.

Secure Admin Login - Logout 1.7 23 Dec 2009
New Update for incSession.php 15 Feb 2009
Minor change to instructions 10 Jan 2009
incSession.php update 2 Dec 2008
Secure Admin Login - Logout made by s.sarkar 10 Sep 2008
Secure Admin Login - Logout 1.6 (w/ Admin Login Management) 20 Jan 2008
LoginAction update 1 Jul 2007
incSession Update 1 Jul 2007
Add and Delete Users 29 Jun 2007
Admin Login 15 May 2007
change admin username and password(republished) 17 Jan 2007
change admin username and password v1.1(with admin_security.php) 12 Jan 2007
change admin username and password 12 Jan 2007
Secure Admin Login - Logout 1.5(republished) 13 Oct 2006
Secure Admin Login - Logout 1.5 11 Oct 2006
Bug, Can't leave the loginAction page 8 Sep 2006
Secure Admin Login - Logout 1.4 27 May 2006
Secure Admin Login - Logout 1.3 20 Apr 2006
Secure Admin Login - Logout 20 Apr 2006
Fixing LoginAction.php 19 Apr 2006
Secure Admin Login - Logout (SQL Injection prevention) 17 Apr 2006
Secure Admin Login - Logout (czech) 24 Mar 2006
Secure Admin Login - Logout 23 Mar 2006

Note: Contributions are used at own risk.