Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do I start osCid session before going to cart


lochie

Recommended Posts

I have a problem..

 

If I am on oscomm on my site and I leave the cart to view a different page and come back.. my cart empties.. so I have added

&osCsid=<?php echo $_GET['osCsid']; ?>

to all the links.

 

however, if I go to my main home page.. there is obviously no session at all so it passes a blank session like..

 

http://musicandleisure.co.uk/shop/index.php?cPath=56&osCsid=

 

which causes the following error..

 

Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/httpd/vhosts/musicandleisure.co.uk/httpdocs/shop/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/musicandleisure.co.uk/httpdocs/shop/includes/functions/sessions.php:67) in /home/httpd/vhosts/musicandleisure.co.uk/httpdocs/shop/includes/functions/sessions.php on line 67

 

So I need to know how to create the session on my own site files if it doesn't already exist or use an existing one IF one does exist.

Kind Regards :)

 

Lee McLachlan

-------------------------------------------------------

Link to comment
Share on other sites

Have you set up the sessions in your shops Admin?

Set all to false except the last two.

 

 

Force Cookie Use False

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

 

I have noticed some people have reported on here about cross log-in problems with having the cookies set to false, but the above works for me.

 

 

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

nobody likes a smart arse is a familiar saying... I don't know why though... because this smart arse just fixed my cart and I love this person :)

 

Thanks ;)

Kind Regards :)

 

Lee McLachlan

-------------------------------------------------------

Link to comment
Share on other sites

Have you changed the code back to the original?

 

You mean the links? Yes I have, well just the homepage and shop ones to test with. It worked once, but the second time it failed. :(

 

I just need my own home page to check for osCid sessions, and if there isn't one, create one. Simple sounding.. but not easy :(

Kind Regards :)

 

Lee McLachlan

-------------------------------------------------------

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...