Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

links are logging customer out


stevennickelby

Recommended Posts

Posted

Hello there,

 

I have got links in the header which have the names of the catergories,

and when a customer is logged on

and they click on the link it will log them off.

 

The links open cpaths in the index.php.

 

how can I make it so the customer stayes logged on after they click on the link.

 

below is the relevent info for the link information

 

 

...in header.php

<a href="<?php echo tep_href_link(FILENAME_CATERGORY1); ?>

" class="headerNavigation"><?php echo HEADER_TITLE_CATEGORY1 ; ?>

 

...in includes/filnames.php

define('FILENAME_CATERGORY1', 'index.php?cPath=35');

 

...in english/languages.php

define('HEADER_TITLE_CATEGORY1', 't-shirts');

 

 

I would like to keep the categories in 2 rows, where half the names are in the top row,

and half are in the bottom row.

 

I tried using the same script as in categories.php(the one in the left hand column), and i could only alter it to

display all the names on 1 row.

 

PLease someone help!

 

....I think what is happening is the session id is changing when the link is cliked on,

so the customer is logged off..come on guys!

:blink:

Posted

I suspect that the problem is that tep_href_link wants to see any link parameters in the second argument. For example:

 

tep_href_link ('index.php','cPath=35')

 

So what you can do is this:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT,CATEGORY1); ?>

" class="headerNavigation"><?php echo HEADER_TITLE_CATEGORY1 ; ?>

...

define('CATEGORY1', 'cPath=35');

Posted
By the way, that the session ID keeps changing also indicates that the session cookie is not being set. This is probably due to an incorrect value of HTTP_COOKIE_DOMAIN.

 

 

', ' is what it came down to.

 

Thanks very much Steve!, i could have been looking for the next hundred years :rolleyes:

 

ohh and with the HTTP_COOKIE_DOMAIN

i just put the url with out the http://...i guess that works!

 

 

B)

Archived

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

×
×
  • Create New...