Zen Cart Logo
Forums / General Questions / HTTPS and security warnings

HTTPS and security warnings

Locked

Views: 1,686

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
14 Jun 2010, 4:14 AM
#1
madd0g avatar

madd0g

New Zenner

Join Date:
Jun 2010
Posts:
35
Plugin Contributions:
0

HTTPS and security warnings

When a user signs into the store it switches to HTTPS and then does not switch back to HTTP. This causes a security error to pop up since some of my sideboxes have external content.

Is there any way to enable HTTPS for log in and checkout only and automatically redirect to HTTP after performing those actions?

Also alternatively telling those sideboxes to disable if in HTTPS mode just in case the customer doesn't get redirected back to HTTP.

14 Jun 2010, 5:24 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: HTTPS and security warnings

Can't see your issue as no site provided...

Auto switching is the default action ...

14 Jun 2010, 7:52 PM
#3
madd0g avatar

madd0g

New Zenner

Join Date:
Jun 2010
Posts:
35
Plugin Contributions:
0

Re: HTTPS and security warnings

Thanks for the reply. So what you are saying is that what I am asking for it should already be doing? Hrmmmm...

Here is my site

14 Jun 2010, 9:59 PM
#4
madd0g avatar

madd0g

New Zenner

Join Date:
Jun 2010
Posts:
35
Plugin Contributions:
0

Re: HTTPS and security warnings

Saw 3 referrals to my site from here. Thanks to those for looking!

14 Jun 2010, 10:08 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: HTTPS and security warnings

MaDd0g:

Also alternatively telling those sideboxes to disable if in HTTPS mode just in case the customer doesn't get redirected back to HTTP.
With respect, that should not be your "alternative" action. It should be your primary action.
You'll have to edit your sideboxes to display content correctly based on whether the page is in SSL mode or not.
The variable $request_type will be 'SSL' or 'NONSSL', respectively, and you can use that to take action accordingly.

14 Jun 2010, 10:17 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: HTTPS and security warnings

MaDd0g:

So what you are saying is that what I am asking for it should already be doing?
Yes that is correct - - The default code allows for auto switching

A couple of things
While selecting login switches to https - - there is NO LOCK presented

This probably means that the certificate is not properly installed....

Try switching to the classic template to see if that changes anything and to rule out a template issue

14 Jun 2010, 10:32 PM
#7
madd0g avatar

madd0g

New Zenner

Join Date:
Jun 2010
Posts:
35
Plugin Contributions:
0

Re: HTTPS and security warnings

Thanks. This is my first Zen Cart so this info is much needed. I will work on the code for disabling the sideboxes in question when in https mode.

You say that the default code "allows" for auto switching. Should I have to do anything to tell it to switch back to http after logon or checkout? Or any other page that may be https?
Posted via Mobile Device

14 Jun 2010, 10:43 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: HTTPS and security warnings

MaDd0g:

Should I have to do anything to tell it to switch back to http after logon or checkout?
No nothing should be required if the code has not been altered
Again try switching to the classic template
Also clear up why you are not seeing a "LOCK" once in https mode

The only setting if your server settings are correct is the following

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');
14 Jun 2010, 10:44 PM
#9
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: HTTPS and security warnings

MaDd0g:

Should I have to do anything to tell it to switch back to http after logon or checkout?That's automatic too.

17 Jun 2010, 4:33 AM
#10
madd0g avatar

madd0g

New Zenner

Join Date:
Jun 2010
Posts:
35
Plugin Contributions:
0

Re: HTTPS and security warnings

Well... Thanks to your help I was able to get all of the security warnings to go away while in HTTPS!

The only outstanding issue is that when I log in as a registered user it does not automatically switch back to HTTP. I have tried the classic template and it acts the same way

Any more ideas???
:D

17 Jun 2010, 4:38 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: HTTPS and security warnings

It's not intended to switch back to HTTP until the customer actually clicks on an HTTP-specific link. That's how it's designed.

17 Jun 2010, 4:50 AM
#12
madd0g avatar

madd0g

New Zenner

Join Date:
Jun 2010
Posts:
35
Plugin Contributions:
0

Re: HTTPS and security warnings

Do you have any magical code that I could put somewhere to have it go back to HTTP after succesfull logon?

I only want the customers using HTTPS when doing functions that should be secure(log in, cart, checkout...)

17 Jun 2010, 6:13 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: HTTPS and security warnings

You don't need "magical code" to redirect to HTTP. That's putting on a bandage instead of fixing the real problem, which is that your custom sideboxes can't handle being displayed in SSL mode.