4images Forum & Community

General / Allgemeines => Chit Chat => Topic started by: abdoh2010 on March 21, 2005, 11:42:55 PM

Title: sessionid in the address part 2
Post by: abdoh2010 on March 21, 2005, 11:42:55 PM
I had just read this topic
http://www.4homepages.de/forum/index.php?topic=5473.0

And I understand all what in there but this topic is on "May 05, 2003"

And 2 years will change a lot so I will ask again

Is there is better solution to remove the sessionid even from the first time to visit?
I don’t want the sessionid effect on my website SEO
Title: Re: sessionid in the address part 2
Post by: V@no on March 22, 2005, 12:22:09 AM
Is there is better solution to remove the sessionid even from the first time to visit?
maybe u have an idea how to do so? I dont...
Title: Re: sessionid in the address part 2
Post by: martrix on March 22, 2005, 09:26:05 AM
 8O

It will be hard to find somebody who knows...


...if even V@no doesn't.  :D
Title: Re: sessionid in the address part 2
Post by: abdoh2010 on March 24, 2005, 04:46:32 AM
i made it  :D

it all begain from the apache php.ini
where you can turn on and off the session in the adress of the browser

A quick way to fix this is to disable the trans-id feature, if you have access, in php.ini by setting “session.use_trans_sid” to false. If you don’t have access to change php.ini you can add this line to the .htaccess file in your root directory:
Code: [Select]
php_flag session.use_trans_sid off
it will do the job
Title: Re: sessionid in the address part 2
Post by: V@no on March 24, 2005, 06:04:06 AM
Thats it!
thank you, I'll add it to the FAQ ;)
Title: Re: sessionid in the address part 2
Post by: abdoh2010 on March 24, 2005, 07:17:45 AM
thats grate
i have another one you may want to add to FAQ

what if the server php.ini upload size is fix to 2m ?
how can you solve it

 :D

add another line to .htaccess
Code: [Select]
php_value upload_max_filesize "300M"
and your upload size will be 300 mega  :mrgreen:
Title: Re: sessionid in the address part 2
Post by: maruan on May 03, 2005, 05:14:38 PM
hello!

in version 1.7.1 I am a little confused with the sessionid: In 1.7 with cookies activated in the browser the sessionid wasn't displayed in the address, but in 1.7.1 it is always displaying (also with this flag in htaccess).

Is this behavior because of the change of session handling so with 1.7.1 it isn't possible to hide the sessionid or I am the only one?

thanks, maruan.

if you wuld like to try: http://kunden.citimage.com/4images171/
Title: Re: sessionid in the address part 2
Post by: JensF on January 02, 2006, 10:52:24 AM
i made it  :D

it all begain from the apache php.ini
where you can turn on and off the session in the adress of the browser

A quick way to fix this is to disable the trans-id feature, if you have access, in php.ini by setting “session.use_trans_sid” to false. If you don’t have access to change php.ini you can add this line to the .htaccess file in your root directory:
Code: [Select]
php_flag session.use_trans_sid off
it will do the job


hhmmm i don´t have a .htaccess file in my root.
Title: Re: sessionid in the address part 2
Post by: Acidgod on January 02, 2006, 02:19:20 PM
then create one... (o:

Sorry mache mal auf deutsch weiter, aber bedenke das es nicht bei jedem Server klappt!
Title: Re: sessionid in the address part 2
Post by: JensF on January 02, 2006, 02:36:06 PM
Ach das kann ich einfach so machen??? OK, wusste ich nicht. Wenn mein Session Problem (http://www.4homepages.de/forum/index.php?topic=10926.0) gelöst ist wollte ich das auch machen das man die session id nicht in der Browser Zeile hat.
Title: Re: sessionid in the address part 2
Post by: JensF on January 06, 2006, 08:01:25 PM
Hab da nochmal ne andere Frage.

Wie erstelle ich diese .htaccess Datei? Nehme ich da einfach Notepad, speichere die Zeile da drin und schiebe das Ding dann einfach auf den Server???

Ist vielleicht ne doofe Frage aber ich habe echt keine Ahnung davon....
Title: Re: sessionid in the address part 2
Post by: mawenzi on January 06, 2006, 08:12:00 PM
... im Prinzip ist das richtig ...
Nur bekommst du eine Datei im Notepad nur mit Extension gespeichert. Du solltest also folgendermaßen vorgehen :

- Notepad öffnen -> neue Datei
- Inhalt deiner .htaccess-Datei nach deinen Erfordernissen eingeben ... siehe diverse Beispiele ...
- Datei speichern zunächst als .htaccess.txt Datei , Notepad schließen
- Im Windows-Explorer diese Datei aufsuchen und nun umbenennen als .htaccess ohne jegliche Extension (txt-Extension löschen) !
- nun kannst du deine .htaccess-Datei in den entsprechenden Ordner auf deinen Server schieben

mawenzi
Title: Re: sessionid in the address part 2
Post by: JensF on January 06, 2006, 08:19:31 PM
Hi,

danke für die Antwort. Wenn ich allerdings das.txt entfernen möchte heißt es immer "Bitte geben sie einen Dateinamen ein". Aber ist nicht ganz so tragisch, habe die Änderungen von hier (http://www.4homepages.de/forum/index.php?topic=8895.0) vorgenommen. Hoffe bloß das klappt auch weil das wohl eher für die 1.7.1 Version ist. Ich nutze aber die 1.7 Version.
Title: Re: sessionid in the address part 2
Post by: edelstoff on January 20, 2006, 12:13:58 PM
Das Ding mit der .htacces funktioniert bei mir nicht, ich möchte aber unbedingt die Session ID abschalten.
Title: Re: sessionid in the address part 2
Post by: mawenzi on January 20, 2006, 12:59:38 PM
@edelstoff
... du hast deine 4images-Galerie komplett in einem Frame zu laufen ...
... das gibt Probleme mit cookies, sess_id , da deine Galerie als Drittanbieter vom Browser gesehen wird ...
... und Standardeinstellung bei IE ... cookies von Drittanbietern werden nicht zugelassen ...
Title: Re: sessionid in the address part 2
Post by: djith on March 03, 2006, 11:29:17 PM
putting this line ;


php_flag session.use_trans_sid off

didn't work out to lose the session id once and for all.....

how to reach php.ini ? 

greetings,
mathew
Title: Re: sessionid in the address part 2
Post by: Fastian on April 06, 2006, 12:36:27 AM
i made it  :D

it all begain from the apache php.ini
where you can turn on and off the session in the adress of the browser

A quick way to fix this is to disable the trans-id feature, if you have access, in php.ini by setting “session.use_trans_sid” to false. If you don’t have access to change php.ini you can add this line to the .htaccess file in your root directory:
Code: [Select]
php_flag session.use_trans_sid off
it will do the job

I am wondering, How could I missed this..
Thanks abdoh2010

I think on most of the site, hosted on shared server that may not be available.
But luckily, for me it’s working fine :)
Combine with “Search engine friendly url” Mod, it works great.

Now I have 2 questions.

Will it going to effect site response time ?? (Loading time)
How much it cause at server end? (I am on shared server) 

For a normal site that is not getting that much users (just 4 weeks old). (Max 20 online)
Title: Re: sessionid in the address part 2
Post by: ipool on August 17, 2006, 04:22:35 PM
Hi
I addet the .htaccess to the root (It's a subdomain) and this Sessionid is still apearing.
I use 1.7 Version.
The Search engines have a lot of Proplems for indexing with this.
I hope someone has a sollution.
Why is it not possible to switch it of in the Admin aerea?
Title: Re: sessionid in the address part 2
Post by: ipool on November 04, 2006, 12:01:33 PM
Me again.
I had no way to remove competly the Sessionid and the Google image search did not index the images.
So I desidet to remove 4homepages and use a other script. Sorry.
If in future there is a version witch hase the possibilitie to remove this Sessionid, please let me know.
Thanks
Title: Re: sessionid in the address part 2
Post by: Nicky on November 04, 2006, 12:18:23 PM
shorturl -> http://crash.nicky.net/i215
Title: Re: sessionid in the address part 2
Post by: shadowhunter on May 22, 2008, 12:39:54 PM
Hallo!

Gibt es noch keine bessere Alternative als die folgende Änderung durchzuführen müssen, um die 2. Sessionid in der URL zu entfernen:
Code: [Select]
php_flag session.use_trans_sid offVergirbt diese Änderung irgendwelche Nachteile mit sich?!?

Dann muss ich mal mit meinem Hoster kontakt aufnehmen für diese Änderung.
Woher kommt die 2. Sessionid in der URL? Kann man dies nicht im Script ändern?

Gruss
Title: Re: sessionid in the address part 2
Post by: dilkebol on July 26, 2008, 02:49:52 PM
I too did it by using those "one line " to .htaccess

http://www.bingifm.com/bollywood/details.php?image_id=386

Thanks a lot