stevennickelby Posted March 26, 2006 Posted March 26, 2006 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:
stevel Posted March 26, 2006 Posted March 26, 2006 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'); Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
stevel Posted March 26, 2006 Posted March 26, 2006 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. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
stevennickelby Posted March 26, 2006 Author Posted March 26, 2006 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)
stevel Posted March 26, 2006 Posted March 26, 2006 HTTP_COOKIE_DOMAIN should be just the domain from HTTP_SERVER. For example, if HTTP_SERVER is 'http://www.example.com' then HTTP_COOKIE_DOMAIN should be 'www.example.com'. Nothing else. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Recommended Posts
Archived
This topic is now archived and is closed to further replies.