Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with session


dannywii

Recommended Posts

Posted

Hello

 

My website is consist of multi language and price for each location are set different, so the problem I have now is when customer leaves computer for a while then come back after session expire, all links they click will show pages in English and price are shown different.

 

Is it possible to redirect customer to index.html if they are browsing without a valid sessionid ??

Posted
Hello

 

My website is consist of multi language and price for each location are set different, so the problem I have now is when customer leaves computer for a while then come back after session expire, all links they click will show pages in English and price are shown different.

 

Is it possible to redirect customer to index.html if they are browsing without a valid sessionid ??

 

 

you'll have to look up the exact syntax, as i've not coded in php for months and have forgotten it all, but all you need is a if isset(sessionid) in application_top.php, and a redirect to index.php if it isn't set.

osCommerce is GREAT. When it works...

Posted

Can someone teach me how to code to redirect to index.html if sessionid doesn't exist ??

I couldn't find anything similar on the forum also tried google but no luck

Posted
Can someone teach me how to code to redirect to index.html if sessionid doesn't exist ??

I couldn't find anything similar on the forum also tried google but no luck

 

 

Search for (and read about) "php sessions tutorial" on Google, and "php redirect".

 

Find in application_top.php where it checks if a session is already set (the comments will tell you what it's doing, so you can just read those until you find it as a short cut), and stick your php redirect in for the true result of the if statement.

osCommerce is GREAT. When it works...

Archived

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

×
×
  • Create New...