Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Session ID issue when sharing URL's or inbound linking
PostPosted: Mon Jul 11, 2011 9:17 am 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Problem with session id's being part of inbound links, customers are automatically logged in as the most recent person to have created an account or placed an order on that same session id, with FULL access to their entire stored details!

Google Adwords set up 25 ads for my client, 17 of them had the session id as part of the URL.

For 6 weeks my client ended up with orders going to the wrong people or customers phoning up to say they could see someone elses details when trying to order online.

My client made it to 29,000 orders without a problem, then we had 6 weeks of chaos whilst trying to find to cause of the problem.

We changed all the Adword ads and instantly the issue stopped.

We're now trying to set up add this / share this buttons, but can already see the session id is part of the shared URL.

Is there a way to detect if someone's visiting from outside of the site and force a new session on them to prevent this?

Or am I simply handling sessions wrongly to cause this issue in the first place?

This instance is 6.2 patch 14 but also tested and seen on 6.4.1a


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Mon Jul 11, 2011 9:48 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Google indexing urls with session ids is bad enough, but someone actually added these to an adwords campaign?! Wow. What to do:

#1 upgrade - more reasons to move on from 6.2!
#2 check how sessions are being handled in the admin >> configuration settings plus by the server itself
#3 if you have htaccess-ability in the root of the store, these lines might help:

Code:
# case: leading and trailing parameters
RewriteCond %{QUERY_STRING} ^(.+)&osCsid=[0-9a-z]+&(.+)$ [NC]
RewriteRule (.*) $1?%1&%2 [R=301,L]
#
# case: leading-only, trailing-only or no additional parameters
RewriteCond %{QUERY_STRING} ^(.+)&osCsid=[0-9a-z]+$|^osCsid=[0-9a-z]+&?(.*)$ [NC]
RewriteRule (.*) $1?%1 [R=301,L]


A session appended url will appear store-side ONCE on login. That's all I see.
Admin sessions are different and appear all the time.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Mon Jul 11, 2011 10:06 am 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Hi Simon,

Thanks for taking the time to reply.

#1 I know all the arguments for upgrading, but the client is in the middle of moving premises and is resisting any changes until that's over with. I pester him on a daily basis, especially as pretty much every issue he has is met with 'upgrade, upgrade, upgrade'! ;o)

#2 Sessions are handled as:

Admin/Configuration/Sessions:
Session Directory /tmp
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session False

Stores configure.php:
define('USE_PCONNECT', 'true'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Admins configure.php:
define('USE_PCONNECT', 'true'); // use persisstent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Any pointers on these gratefully received, although aside from this issue, everything else works fine.

#3 I added the code to the htaccess file but still see the oscsid throughout the site, should it be stripping it?

ShareThis did tell me I could:

Quote:
You can modify the stWidget JavaScript object's properties dynamically to specify the content that is shared.
You can strip of the session id from the url and pass that url to 'stWidget.addEntry() method'
For more information, you can visit the link:
http://help.sharethis.com/customization ... properties

But this is all pretty foreign to me and it would be nice to know how to kill the issue locally as surely anyone emailing a link to the page they're viewing direct from their browser or as I do all the time from my phone will also be sending their session ID and therefore access to all their info?


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Mon Jul 11, 2011 10:19 am 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Slight amend:

Added
Quote:
Options +FollowSymlinks
RewriteEngine on

to the start of the rewrite argument in htaccess, now we have no session ID showing but all links end up at the homepage - I think maybe as we have a 404 redirect to same?


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Mon Jul 11, 2011 5:56 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Wow, who setup this store?

I wouldn't use:
Code:
define('USE_PCONNECT', 'true'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Storing sessions in a folder isn't good, esp in a 6.2 store.

Instead:
Code:
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'


Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Wed Jul 13, 2011 9:55 am 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Hi Simon,

I changed those values, thanks for your input.

I also spotted somewhere else on the forums - http://creloaded.org/forum/topic.html?f ... l&start=30 - that I should set 'Force cookie use' to true in order to remove the oscsid from the address bar.

I did this and the address bar was perfect ;o) Short lived though as I soon realised it is now impossible to place anything in your basket - grrrr

When clicking add to basket, the store tells me 'your basket is empty'. I changed it back to false and hey presto, we can now put things into the baskets again.

Is there a way I can have the oscsid removed from the address bar but still have the basket actually work?


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Wed Jul 13, 2011 2:48 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Forcing cookie usage isn't going to help. There are server issues with the cart by the sounds of it, so no amount of tweaking the cart settings seems to work. Bit tough to do much here - had a look at Admin >> Tools >> Server Info for any red crosses?

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Thu Jul 14, 2011 10:17 am 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Hi Simon,

Again thanks for your time.

I took your advice and checked the server info, there is one red cross alongside 'PHP Mcrypt'. Is this something that would allow us to strip the session id from the url? Or just something that could do with sorting.

To recap, we have no operational issues with the site aside from the fact that in order to use the various social share buttons, etc. we need to be able to remove the oscsid from the url, as we did have some issues with Adwords using the url inclusive of a session id (changed the adwords url's now).


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Thu Jul 14, 2011 3:51 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Yeah, you've gone from "customers can log in to other customers accounts" to now "it's just the social button urls that we don't want session ids on" ... so bit of a change from the original eh? Find someone who can rewrite the htaccess mod I posted specifically for your social links then - osIds shouldn't be an issue UNLESS there's some misconfiguration / tweaking been done. Bottom line - upgrade.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Fri Jul 15, 2011 6:03 am 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Hi Simon,

I know upgrade to be the best root, just waiting on the client arriving at that same conclusion ;o)

The issue is / was, all one in the same - with the oscsid as part of the Google Adwords link (as set up by Google for the client), site visitors were automatically logged in as the most recent user of that same session ID - obviously not acceptable but solved once discovered by removing the session id from the Adwords campaign.

So now we want to run social buttons but can see exactly the same thing will happen again as the oscsid is shared on each social share made. Hence the need now to remove the oscsid from the address bar if possible.

Sorry if on my 'journey' I hadn't logged the various stages, I guess it's one of those situations where you think / hope everyone else knows what you're thinking ;o)

Thanks for all your input

Steve


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Sat Jul 16, 2011 1:35 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
LordSprocket wrote:
Hi Simon,

I changed those values, thanks for your input.

I also spotted somewhere else on the forums - http://creloaded.org/forum/topic.html?f ... l&start=30 - that I should set 'Force cookie use' to true in order to remove the oscsid from the address bar.

I did this and the address bar was perfect ;o) Short lived though as I soon realised it is now impossible to place anything in your basket - grrrr

Are you sure your cookie path is set right in the configs?


Top
 Profile  
 
 Post subject: Re: Session ID issue when sharing URL's or inbound linking
PostPosted: Mon Jul 18, 2011 1:06 pm 
Offline
CRE Newbie
User avatar

Joined: Wed Nov 18, 2009 11:59 am
Posts: 32
Location: UK
Hi 'cheapo',

I was sure - until I found a mistake!

[walks away sheepishly]

Things are making a lot more sense now!

Thanks all ;o)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Wed May 23, 2012 8:34 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy