Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

[Notice] A session had already been started - ignoring session_start()


Reply


2 Posts   3432 Views

Avatar
Valorinbattle

Community Member, 95 Posts

7 October 2009 at 7:54pm

I'm trying to integrate Cartweaver into SS. It's an ecommerce solutions that I've used for a while on static sites, but never in conjunction with SS.

When I try to add it into a page.ss, I get this:

[Notice] A session had already been started - ignoring session_start()

It identifies this file as the source of misbehaving session_start:
cw3\CWLibrary\CWIncSetup.php

I've tried to just suppress it with @session_start(); - the error doesn't
return but the pages don't load either :(

I've also tried this, with no success: if(!isset($_SESSION)) {
session_start(); }

I did a search for all SS files that call up session_start(), but I don't know what's at fault or how to fix it.
Cartweaver obviously is trying to start a session after SS already has.

Any ideas?

Thanks for the help!
~ James

Avatar
dalesaurus

Community Member, 283 Posts

8 October 2009 at 4:41pm

SS will dominate any other PHP app that conflicts with its sessions or attempts to use any URL after http://yoursssite.com/* due to the way it handles URL rewrites.

By far the easiest solution for you will be to setup your cart as a separate VHOST on a subdomain, like http://store.yoursssite.com/