Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Turn off the session


derryadrian

Recommended Posts

I think session is so complicated. Maybe I don't neet at all. So,...

Can we run oscommerce without using any session? is there any impact to shopping cart if we don't use session?

 

How to stop our website using session?

Thanks in advance. :rolleyes:

[.:2s1000s12:.]

"Did I had the dream, or did the dream had me?"

Link to comment
Share on other sites

Sessions and cookies are needed to save information in a customers shopping cart when moving between pages. Otherwise when your customers moved from one page to another they would lose their cart. Why do you want to disable? It should not have an effect on anything you do.

Link to comment
Share on other sites

I put a list of manual link in a file, and show it in the index.php with an iFrame tags in modules/products_new.php.

 

I also add some code in products_info.php to create a link to advanced_search_result.php to search certain criteria on product information tables.

 

Somehow the session id not added in every link of my code. :blink:

So the result - if someone logged in then clicking that link - he will be create a new session. :angry: hummm... :lol: It confusing me a lot for a non PHP programer user.

 

So? Is there any solution matching this problem?

[.:2s1000s12:.]

"Did I had the dream, or did the dream had me?"

Link to comment
Share on other sites

:lol: Yes thank for the solution...

It just still not working yet.

I had tried to use tep_href_link(...) in my release/new.php (manually written list with html tags and many html formating.)

 

This is the Frame that I mention it...

<iframe src=release/new.php name="new_release" wrap="soft" width="100%" height=450 marginwidth="30" marginheight="10" align="top" scrolling="auto" frameborder="0"></iframe><p>

which is reside in /include/modules/new_products.php

I remark original new_products.php code and add that piece of code so I can put a manually written list.

 

And this is some control to switch list in upper list to another same manually written list. Say it old release list.

<iframe src=release/tags.php name="release_tags" wrap="soft" width="100%" height=80  marginwidth="10" marginheight="10" align="top" scrolling="auto" frameborder="0" ></iframe>

[.:2s1000s12:.]

"Did I had the dream, or did the dream had me?"

Link to comment
Share on other sites

:D Well... a little progress report...

 

After a long days. I found a little manipulation to make something in iFrame have a similar link with other link in page.

 

Here just a sample:

 

<iframe src=release/new.php?SID=<? echo $SID;?> name="new_release" wrap="soft" width="100%" height=450 marginwidth="30" marginheight="10" align="top" scrolling="auto" frameborder="0"></iframe>

 

with adding ?SID=<? echo $SID;?> you'll have all link in iFrame with similar session. And,.. I think tep_hide_session(); won't work in iFrame.

 

Why I bother using iFrame? Well my customer insist me to have a iFrame in his homepage. But somehow iFrame source file act as outsider script. It can not preserve visitor session. :huh:

[.:2s1000s12:.]

"Did I had the dream, or did the dream had me?"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...