Support Forums

Session IDs

This is a discussion on Session IDs within the Technical Support forums, part of the Technical Support Forums category; how can i take off the session ids? google is indexing my pages with the session ids included....


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-10-2008, 09:10 PM   #1
Member
 
Join Date: Apr 2008
Posts: 51
Rep Power: 11
anna245 is on a distinguished road
Question Session IDs

how can i take off the session ids? google is indexing my pages with the session ids included.
anna245 is offline  
Old 06-11-2008, 10:27 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,471
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You can try adding this to a php file like includes/init.php
PHP Code:
ini_set'session.use_cookies'1); 
ini_set'session.use_trans_sid'1); 
If that doesn't work you may have to contact your host and have them change it.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-11-2008, 09:26 PM   #3
Member
 
Join Date: Apr 2008
Posts: 51
Rep Power: 11
anna245 is on a distinguished road
Default

where would i place that code in the file?


what exactly would I be asking my hosting company to do to stop the session ids?
anna245 is offline  
Old 06-11-2008, 10:24 PM   #4
Member
 
Join Date: Apr 2008
Posts: 51
Rep Power: 11
anna245 is on a distinguished road
Question

I found this article:

http://www.ragepank.com/articles/26/disable-phpsessid/

will this technique work with 68classifieds? If so, where would the step 2 code go?
anna245 is offline  
Old 06-12-2008, 08:46 AM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,262
Rep Power: 129
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by anna245
I found this article:

http://www.ragepank.com/articles/26/disable-phpsessid/

will this technique work with 68classifieds? If so, where would the step 2 code go?
Step number one on the page in the link tells you to do basically what Eric said.
The issue you are having is a web host issue and not 68C specific. Any site that uses sessions on your host will have the same issues.

With that being said, you need to tell PHP how it should handle sessions. To make a global change your host would have to get involved. However, if they allow users to over ride some of the default values this can be done by having 68c script tell PHP what values to use. Thats what Eric mentioned above by adding the code to one of the files mentioned. Then everytoime a page on your 68C site is loaded it will tell PHP how to handle sesions.


The other method, which is outlined on the link you posted is to add those 2 lines to your .htaccess file in the root of your web space. This does the same thing as ading the commands to a script like Eric mentioned above. It tells php how to handle sessions.

Either way is fine assuming that your host allows you to over ride these values. If they dont, then you are going to have to contact your host and tell them to enable trand_sid.
If your host is set up to allow those values to be over ridden you should be fine
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-12-2008, 08:44 PM   #6
Member
 
Join Date: Apr 2008
Posts: 51
Rep Power: 11
anna245 is on a distinguished road
Question

When I tried placing the code in the includes/init.php file, the session ids were still there.

I tried the other method which was suggested in the blog and it works. no more session ids. However, I didnt not do step 2. where would i put that code? is it necessary?
anna245 is offline  
Old 06-12-2008, 09:11 PM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,262
Rep Power: 129
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by anna245
When I tried placing the code in the includes/init.php file, the session ids were still there.

I tried the other method which was suggested in the blog and it works. no more session ids. However, I didnt not do step 2. where would i put that code? is it necessary?
I think I would wait on doing there step 2 and 3 and see if the sessions ID's go away in your google links.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session timeout castus Technical Support 3 12-03-2007 08:50 AM


All times are GMT -4. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0