Zen Cart Logo
Forums / General Questions / secure main page after logging in

secure main page after logging in

Locked

Views: 1,479

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
19 Jun 2010, 5:04 PM
#1
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

secure main page after logging in

Hi,

On my site, after a customer logs in, they are taken to the main page with SSL still enabled.

If they then immediately search, they get a warning that unencrypted info will be sent. (Clicking any other link gives the user a regular non-ssl page, which is fine.)

I'd like to eliminate the unencrypted error notice by having the customer go to a non-ssl main page after they log in.

Since my site is somewhat customized, I don't know if the customer lands on an ssl-enabled page after login by design or if that's a quirk in my system.

In any case, I want the main page to be non-ssl after login.

How can I change the post-login main page to be non-ssl?

I running 1.39d

Many thanks,

Ed

19 Jun 2010, 9:38 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,811
Plugin Contributions:
15

Re: secure main page after logging in

In your "admin" includes/configure.php, are all your http# defines listed as https or are they different for each?

define('HTTP_SERVER', 'http://www.something.com');
define('HTTPS_SERVER', 'https://www.something.com');
define('HTTP_CATALOG_SERVER', 'http://www.something.com');
define('HTTPS_CATALOG_SERVER', 'https://www.something.com');

20 Jun 2010, 2:29 AM
#3
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: secure main page after logging in

I have all of them set to https in admin.

Ed

20 Jun 2010, 8:32 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,811
Plugin Contributions:
15

Re: secure main page after logging in

They need to be as in my post. Http for http and https for https

20 Jun 2010, 2:02 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: secure main page after logging in

dbltoe:

In your "admin" includes/configure.php, are all your http# defines listed as https or are they different for each?

define('HTTP_SERVER', 'http://www.something.com');
define('HTTPS_SERVER', 'https://www.something.com');
define('HTTP_CATALOG_SERVER', 'http://www.something.com');
define('HTTPS_CATALOG_SERVER', 'https://www.something.com');

edadk:

I have all of them set to https in admin.

Ed

dbltoe:

They need to be as in my post. Http for http and https for https

dbltoe,
The OP is talking about a store-side preference, not an admin issue.z

20 Jun 2010, 2:52 PM
#6
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: secure main page after logging in

dbltoe:

They need to be as in my post. Http for http and https for https

Thanks for the suggestion but that does not have any effect for me other than taking away ssl on most of the admin side.

This issue also occurs when a user logs out, the next page they are shown is secure, so if the user then performs a search on that page, they get the same warning about info being sent insecurely.

Again, immediately after login or logout, the user is dropped onto a secure page. If the user then attempts to do a search from the secure page, they receive a popup warning about info being sent insecurely.

Ed

20 Jun 2010, 3:46 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: secure main page after logging in

Are you actually getting complaints from your customers about this problem?

Unfortunately, there is not a way to totally cure the problem except to run the whole store under SSL or don't run SSL at all, neither of those choices is acceptable.

If you don't make the page after an SSL page appear to be SSL you get other security warnings. So we have minimized the circumstances to limit the possible problems.

20 Jun 2010, 4:29 PM
#8
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: secure main page after logging in

Kim:

Are you actually getting complaints from your customers about this problem?

Unfortunately, there is not a way to totally cure the problem except to run the whole store under SSL or don't run SSL at all, neither of those choices is acceptable.

If you don't make the page after an SSL page appear to be SSL you get other security warnings. So we have minimized the circumstances to limit the possible problems.

Thank you for your reply.

Perhaps I'm looking at this with blinders on.

Would it be possible to modify the search box so that it will take into account whether or not the search is being performed from a secure page?

Many thanks,

Ed

20 Jun 2010, 6:18 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: secure main page after logging in

What is your site URL?
What template are you using?

I'm not seeing the behavior you describe, when using a fresh install of v1.3.9d

20 Jun 2010, 6:32 PM
#10
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: secure main page after logging in

DrByte:

What is your site URL?
What template are you using?

I'm not seeing the behavior you describe, when using a fresh install of v1.3.9d

I'm using my own custom template.

I'll pm you a link, I do not want to post it in the forum.

thanks,

Ed

20 Jun 2010, 6:51 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: secure main page after logging in

Your search sidebox appears to be using old code.

Upgrade your custom versions of /includes/sideboxes/YOUR_TEMPLATE/search.php and /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search.php to use v1.3.9 code instead of whatever old code they're using now.

A proper upgrade includes upgrading ALL customized files to use the updated code in the new version. That means all your custom template/language/etc files as well.

20 Jun 2010, 7:24 PM
#12
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: secure main page after logging in

DrByte:

Your search sidebox appears to be using old code.

Upgrade your custom versions of /includes/sideboxes/YOUR_TEMPLATE/search.php and /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search.php to use v1.3.9 code instead of whatever old code they're using now.

A proper upgrade includes upgrading ALL customized files to use the updated code in the new version. That means all your custom template/language/etc files as well.

Ok, problem solved.

I must have missed the tpl_search.php file. I deleted my old custom tpl_search.php file and that took care of it immediately.

Note - I don't have a path of includes/sideboxes/YOUR_TEMPLATE/search.php. If you meant includes/modules/sideboxes/search.php, I did not have an override on that file so I didn't make any change.

In any case, deleting the outdated template file fixed it. Now a search on either an ssl or non-ssl page completes without any warnings.

Many thanks for your assistance.

Ed

20 Jun 2010, 8:22 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: secure main page after logging in

Great !

20 Jun 2010, 8:28 PM
#14
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,811
Plugin Contributions:
15

Re: secure main page after logging in

glad you finally got pointed in the right direction:blush: