Guest Posted July 14, 2005 Share Posted July 14, 2005 Hi Everybody - I have a little problem that I can't seem to figure out. On my webpage I have a links to other stores. I creat the links like this: $lc_text = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=products_links&goto=' . $listing['products_id']) . '" target="_blank">' . $listing['products_name'] . '</a>'; When someone clicks on this link they go to the redirect code which is: case 'products_links': require(DIR_WS_FUNCTIONS . 'links_aff.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); }else{ $links_query = tep_db_query("select products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['goto'] . "'"); $link = tep_db_fetch_array($links_query); tep_redirect('http://' . $link['products_aff_url']); } } What this code does is if someone is NOT logged in they are redirected to the login page. Once they login, they are sent to the store they clicked on. But for some reason they get a "Security Alert" popup saying "You are about to be redirected to a connection that is not secure. blah blah blah." If the user is already logged in and then clicks on the link they get sent to the store without this "Security Alert". What I think is going on is that when they are Not logged in and they are sent to the login page, it is a SSL page (i'm using a shared SSL cert). Once they finish loggin in they are sent to other stores page, which is not an SSL page, and they get the "Security Alert". I tried taking out the SSL part of the line tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); but it doesn't help. I done some other stuff but nothing seems to help. Any ideas will be greatly appreaciated. thank you. Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2005 Share Posted July 14, 2005 I've been looking through the forums and so far found nothing that could help me out with this. Any suggestions from anybody? thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.