Jump to content



Latest News: (loading..)

- - - - -

Session is removed when clicking "Top"


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#-19   FashionSense

FashionSense
  • Members
  • 23 posts

Posted 26 August 2010 - 04:33 PM

I have a small problem:

Whenever I/my customers click on "top" in my store (Top » Catalog » Software » Simulation) the sessionID is lost, which I want to change.
I guess I just have to add "$sid$" at the end of the link? but my problem is also I have no idea where to locate this link? in which file/directory should I look?

#-18   FIMBLE

FIMBLE
  • Community Sponsor
  • 6,576 posts

Posted 26 August 2010 - 04:55 PM

That wont do anything, the session syntax is $_session then you must define it, but it already is so you need to backtrack any addons or changes that have been done to your store to make this happen.
The call is written into your includes / application top starts at line 465 (STD OSC)

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); 

Is it a template you have?

a URL would be good also please
Nic
Sometimes you're the dog and sometimes the lamp post

My Contributions

#-17   germ

germ
  • Members
  • 13,921 posts

Posted 26 August 2010 - 04:57 PM

If your cookie paths in the config file are '/catalog/' try making them '/'.
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 >

#-16   FashionSense

FashionSense
  • Members
  • 23 posts

Posted 26 August 2010 - 06:47 PM

This is just a test site I am using: test forum
But at the top left corner the link called "Forside" will give the customer a new sessionID, and if logged in it will log the person off (on the actual shop).

I can't link to the real shop since it is only running on a local server, but I have used STS and installed a danish language pack.
Also I used one of the premade templates in STS (the free60), to create my own design from.

So if anyone knows how to fix this?

Edit: Of course this forum doesn't have the sessionID's :S

Edited by FashionSense, 26 August 2010 - 06:50 PM.


#-15   FIMBLE

FIMBLE
  • Community Sponsor
  • 6,576 posts

Posted 26 August 2010 - 07:19 PM

In this case its going to be impossible to provide any help, other than what Jim has already mentions on the configure file.
You would normally loose the session id via a poorly constructed link more often than not found in poorly coded templates.
Nic
Sometimes you're the dog and sometimes the lamp post

My Contributions

#-14   FashionSense

FashionSense
  • Members
  • 23 posts

Posted 26 August 2010 - 07:30 PM

In my config file it says:
define('HTTP_COOKIE_PATH', '/');

But I forgot to mention that the "top" link is located under $content$ (when using STS) I don't know if this provides any help

#-13   FIMBLE

FIMBLE
  • Community Sponsor
  • 6,576 posts

Posted 26 August 2010 - 08:50 PM

it might be best to ask your question in the STS forum then as bill would know more than i about STS
Nic
Sometimes you're the dog and sometimes the lamp post

My Contributions

#-12   FashionSense

FashionSense
  • Members
  • 23 posts

Posted 26 August 2010 - 08:54 PM

okay, thanks for your answers at least :)