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

Secure Admin Login - Logout made by s.sarkar sarkar_precious08 10 Sep 2008

This is the Complete Package.

Secure Admin Login - Logout 1.6 (w/ Admin Login Management) EricK 20 Jan 2008
LoginAction update schu1321 1 Jul 2007
incSession Update schu1321 1 Jul 2007
Add and Delete Users beachkitty85 29 Jun 2007
Admin Login Interaktiv 15 May 2007
change admin username and password(republished) sarvesh_borkar 17 Jan 2007
change admin username and password v1.1(with admin_security.php) sarvesh_borkar 12 Jan 2007
change admin username and password sarvesh_borkar 12 Jan 2007
Secure Admin Login - Logout 1.5(republished) MountainDewMike 13 Oct 2006
Secure Admin Login - Logout 1.5 MountainDewMike 11 Oct 2006
Bug, Can't leave the loginAction page kshepitzki 8 Sep 2006
Secure Admin Login - Logout 1.4 irfanmoosani 27 May 2006
Secure Admin Login - Logout 1.3 dailce 20 Apr 2006
Secure Admin Login - Logout dailce 20 Apr 2006
Fixing LoginAction.php godfrank 19 Apr 2006
Secure Admin Login - Logout (SQL Injection prevention) godfrank 17 Apr 2006
Secure Admin Login - Logout (czech) nostradam 24 Mar 2006
Secure Admin Login - Logout anchor555 23 Mar 2006

Note: Contributions are used at own risk.