Easy admin login-mod

If you want an easier and faster way to login to your admin-section

(i have this a long time now, just thought of it to share it here)

then make a directory called “admin” (in the root), create a basic authentication

for it with the username/password you now have for the admin-area

(i mean password protect it with http authentication: if you are using

an interface like f.e. plesk, fantastico or directadmin its very easy, otherwise

google a bit).



then copy the code below and put it in a new file called “index.php”

and save it in this new directory “admin”.



It is faster in two ways:

-it always remembers the username

-if you’re really lazy and sure no one will get onto your computer

you can also save this password, so you enter with a click…



```php










```

Does anyone have a similar script for 2.0.10? I can only get it to work with a submit button , but not with “onload”

I don’t get the benefit of this really at all…



All you have to do is enter an email address and a password & as long as you touch the admin panel at least once every two hours, you stay continually logged in. I believe you can even set this to a longer time period before getting logged out, although I touch our admin like every 3 minutes all day long so it isnt even a thought for me to increase from 2 hours.



Besides that, the reason for having to enter both a user name/email AND password is for additional security versus only entering a password, why would anyone think it was wise to cut the login security in half?



If you think having to re-login after 2 hours maximum is bad, the cart platform we were using prior to CS-Cart REQUIRED an admin to re-login every 10 flippin minutes, that was enough to drive me insane! :smiley:

We actually don’t use it for the admin login; we use it so our customers can incorporate our cart as part of their websites. It eliminates the need for a password, creates a smooth transition from their site to ours, and lets us control what membership they login under and the prices they see. I finally figured it out and have posted the results below :









[quote name=‘jdings’]We actually don’t use it for the admin login; we use it so our customers can incorporate our cart as part of their websites.


[/QUOTE]

Doesn't this violate the cs-cart license agreement?

I don’t think so, as they only have a banner with a link to our site. We are only hosting one site. This just creates an easier way for them to access our products.