Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login Link on header not SSL


clc701

Recommended Posts

SSL works on the entire site except for on the main page. When clicking on the login link you don't get a secure SSL.

www.clcpublications.com is our website. Anyone know why this would be happening?

 

Thanks

Link to comment
Share on other sites

It's probably miscoded.

 

If you want a link to use SSL you have to supply the 'SSL' as the 3rd parameter in the tep_href_link()

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Sorry left the code off

 

  <?php
if (tep_session_is_registered('customer_id')) {
echo '<a href="' . tep_href_link(FILENAME_LOGOFF) . '" class=ml1>Customer Logout</a><span class=ch1></span><img src=images/m02.gif width=1 height=11><a href="account.php" class=ml1"></a>';
}
else {
echo '<a href="' . tep_href_link(FILENAME_LOGIN) . '" class=ml1>Customer Login</a><span class=ch1></span><img src=images/m02.gif width=1 height=11>';
}
?>

Link to comment
Share on other sites

Thanks Jim,

I figured it out with help from your post. Just added the SSL in as a parameter like you said.

  <?php
if (tep_session_is_registered('customer_id')) {
echo '<a href="' . tep_href_link(FILENAME_LOGOFF) . '" class=ml1>Customer Logout</a><span class=ch1></span><img src=images/m02.gif width=1 height=11><a href="account.php" class=ml1"></a>';
}
else {
echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '" class=ml1>Customer Login</a><span class=ch1></span><img src=images/m02.gif width=1 height=11>';
}
?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...