Latest News: (loading..)

Archived

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

spooks

What is the osCsid & why you must not loose it.

207 posts in this topic

@@opiate

 

I assume you have checked that your includes/configure.php cookie settings are correct ?

 

The main issue I note from your site is the lack of any expires header causing 304 'errors' on revisit, I would address that first, take a look at your page speed / yslow scores and address what you can.

Share this post


Link to post
Share on other sites

@@spooks or someone who could help me with this,

 

I have a few questions regarding this topic.

 

If I make a link like this:

<a href="mysite/page.php">Link</a>

 

And I force cookie use in my admin settings, (like you said) the user can browse fine without loosing the cart or suddenly logging out, my question is will this work in every case. I mean is it possible it will not work if the user changes some setting in their browser relating to cookies?

 

Also I am using the extra info page manger for 2.3.1 which lets me edit custom pages from admin area but it saves the text information on the database and can translate to HTML. But in there the tep_href_link function doesn't work. Is there a way to make a link in there without loosing the osCsid?

 

 

Thanks

Aleksander

Share this post


Link to post
Share on other sites

The ideal link code would be:

 

<a href="<?php echo tep_href_link('page.php'); ?>">Link</a>

 

The gist of the matter is if you don't use the osC function tep_href_link() you run the risk of losing the session and dumping the cart/logging the customer off.

 

That being said, it's not always true.

 

I did some testing a long time ago and linked an osc page to a HTML only file that linked back to the osc page. I could go back and forth without losing the session. This may or may not be true for you, It's always best to use the osc function to construct links.

 

The contribution you mentioned doesn't work using the tep_href_link function because it would have to eval() the code.

 

The way to tell if links in the contribution generated files will be OK for you is just put something in the cart and click the link. Then go to the shopping cart page. If the cart is empty you lost the session.

 

If not - you're good to go.

Share this post


Link to post
Share on other sites

The ideal link code would be:

 

<a href="<?php echo tep_href_link('page.php'); ?>">Link</a>

 

The gist of the matter is if you don't use the osC function tep_href_link() you run the risk of losing the session and dumping the cart/logging the customer off.

 

That being said, it's not always true.

 

I did some testing a long time ago and linked an osc page to a HTML only file that linked back to the osc page. I could go back and forth without losing the session. This may or may not be true for you, It's always best to use the osc function to construct links.

 

The contribution you mentioned doesn't work using the tep_href_link function because it would have to eval() the code.

 

The way to tell if links in the contribution generated files will be OK for you is just put something in the cart and click the link. Then go to the shopping cart page. If the cart is empty you lost the session.

 

If not - you're good to go.

 

Hey thanks for the reply. Any chances to make the contribution show the links using tep_href_link function correctly? how to ecal() the code?

 

I have tried different things and it works on a simple HTML link when the force cookie use option is true.

Share this post


Link to post
Share on other sites

Doing an eval() on the code isn't a good idea.

 

Forcing cookie use has it's pro's and con's.

 

If it work for you - run with it.

Share this post


Link to post
Share on other sites

anyone know how to make a custom home page that doesn't affect the cpath links to categories and manufacturers?

 

both the categories and manufacturer links are both embedded from index.php which is making it impossible to have a custom home page

 

if anyone knows how to make a custom home page without having these issues, do please tell.

 

i don't want to lose the osCsid.

 

noone seems to know it looks like.

Share this post


Link to post
Share on other sites

Your custom home page issue has nothing to do with the session id. Please don't post all over. You got an answer here

Share this post


Link to post
Share on other sites