Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google adds ... to session ID


protogabe

Recommended Posts

Hello:

 

Google results on our site all have shortened the session ID's (ie,

http://mysite.com/catalog/index.php?cPath=0_22_1129&osCsid=788...

) abbreviated with three dots. Naturally, osC does not like this and returns errors:

 

Warning: session_start() [function.session-start]: The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/mysitej/public_html/catalog/includes/functions/sessions.php on line 67

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/catalog/includes/functions/sessions.php:67) in /home/levinej/public_html/catalog/includes/functions/sessions.php on line 67

 

I looked at all the contributions for similar problems but all deal with search engines indexing the site after the fact and nothing about what happens if google abbreviates whatever session ID it had. I would like if the session contains "three dots" to just either not assign a session or generate a new one, that way I avoid the error the user starts off scott fee. Any help would be greatly appreciated.

 

PS - Both Session Regeneration and Spider Remover do not work for this purpose. Neither of them recreates an invalid session id or helps any to that measure.

Link to comment
Share on other sites

You do not want spiders to have sessions, plenty of issues, in admin/sessions turn on 'prevent spider sessions'

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

You do not want spiders to have sessions, plenty of issues, in admin/sessions turn on 'prevent spider sessions'

 

 

Done now but still doesn't fix the problem of three dot sessions ID's already in their indexes (could take months to reindex if at all), so need solution as stated above.

Link to comment
Share on other sites

You can ask google to remove offending url's

 

I can't see any coder here writing code to fix for you for free as they wont have made that error.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

You can ask google to remove offending url's

 

I can't see any coder here writing code to fix for you for free as they wont have made that error.

 

It's an error in google shorthanding long URLs and will arise with another user of osC undoubtedly. Just because you cant assist doesn't mean you need to offer your opinion on whether or not people will help for free, I never asked for that or assumed that in the first place Spook. This is a forum, need I remind you, where osC user report issues, which is what we do and what this is, not a query for free work. It's a problem that other people might have had thus posting it in the forums might get an intelligent response.

 

Now back to the issue.

Link to comment
Share on other sites

It shouldn't be a problem for any other osC users if they have correctly setup their site as you should never allow spiders to have session ids.

 

You will need to modify the code (perhaps in application_top.php) to detect if the session id contains '...' and if so to drop it before trying to recreate/start the session

Link to comment
Share on other sites

Well it sounded to me that you were expecting someone to fix this for you, had you bothered to search you'd have noted others that had also failed to properly configure thier store have also been confrunted with this.

 

This is not an osC issue, as proper use wont create the problem.

 

NB I could make a fix, but with that reply I wont.

 

Best of luck coding it yourself!!!

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

It shouldn't be a problem for any other osC users if they have correctly setup their site as you should never allow spiders to have session ids.

 

You will need to modify the code (perhaps in application_top.php) to detect if the session id contains '...' and if so to drop it before trying to recreate/start the session

 

got it, thanks perfectpassion. makes sense.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...