| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Force HTTPS administration | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Force HTTPS administration
How can I force all admin sessions to be conducted via HTTPS? I want any admin attempting to access the admin area using HTTP to be redirected to the HTTPS login area.
|
|||||||
#2
|
|||||||||
|
|||||||||
I do this to my admin/orders.php and provider/oders.php as sensitive info is stored with the customers cc so I add the following include at the top of the orders.php:
Code:
And make adjustments in customer/https.php: Code:
You'll need to add the include on every area in the admin you want secure so if it is hit with http it will switch over, you'll also need to add the filename of the admin php script your wanting to secure, note ive got orders.php in my $https_scripts array. hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
Boomer, that worked perfect! Thanks alot for the help.
|
|||||||
#4
|
|||||||||
|
|||||||||
I wanted the entire admin section to be https, so I added the following to admin/auth.php:
Code:
Now if you visit the admin section at http you are redirected to https. So far so good. Brian |
|||||||||
#5
|
|||||||
|
|||||||
Brian,
That is exactly what I was looking for - thanks alot. Forced SSL Admin working 100% |
|||||||
#6
|
|||||||||
|
|||||||||
Thanks a lot, I tried this as well and it seems to work fine! I haven't tested it extensively, but I assume that in theory there should be no way now to access the admin functions without https? Obviously this is very important with regard to credit card details, as we all appreciate.
|
|||||||||
#7
|
|||||||
|
|||||||
works 100% but now i can't generate sql files
When i click on the "generate db"
the dialog box asks me if i want to save or open, i tryed both then a new dialog box opens with the following message Quote:
then after a minute I get this message, Quote:
Quote:
So how can i work out this conflict??? please help |
|||||||
#8
|
|||||||
|
|||||||
Forced administration ssl
Make sure your database has a connection via localhost.
I've seen this problem when x-cart is making a database connection via a URL or IP address. (Therefore, the data is being transferred through an insecure connection.) |
|||||||
#9
|
|||||||
|
|||||||
i just modified the following for complete https access:
customer/https.php: Code:
and for admin login - admin/auth.php: add this to the top: Code:
i just added the support for admin login but I have been using the whole site as https b/c many customers complained about portions of the site not secure. Personally I think they are parinoid, but if it will make them happy i'll accomodate for them! |
|||||||
#10
|
|||||||||
|
|||||||||
3.5.1 does not work with HTTPS
Fatal error: Cannot redeclare is_https_link() (previously declared in /home/nquest/public_html/store/customer/https.php:54) in /home/nquest/public_html/store/customer/https.php on line 54
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|