[PHP] trans_sid? (was: SV: [PHP] Quickie)
John W. Holmes propably said: Do you have a session_start() on the page? It looks like you have a trans_sid enabled. PHP will add that to all of your URLs automatically. Can you disable it in php.ini? Yes trans_sid is enabled and i have a session_start on the page. What is trans_sid doing exactly? I tried looking it up in the documentation but don't really get it. What would i loose if i disabled trans_sid (or actually - tried to persuade my webhotel to disable it). The strange thing is also that it only adds the session id to url:s when the page is first loaded. After the first click it goes away. - D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)
To reply to myself .) I disabled trans_sid on the actual site by using: ini_set('session.use_trans_sid',false); session_start(); But i still want to know what trans_sid does for me. What am i missing out on when not using it? - D, loves google -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] trans_sid? (was: SV: [PHP] Quickie)
on 01/10/02 7:45 PM, Daniel Alsén ([EMAIL PROTECTED]) wrote: John W. Holmes propably said: Do you have a session_start() on the page? It looks like you have a trans_sid enabled. PHP will add that to all of your URLs automatically. Can you disable it in php.ini? Yes trans_sid is enabled and i have a session_start on the page. What is trans_sid doing exactly? I tried looking it up in the documentation but don't really get it IF you're using sessions, and IF the client (browser) doesn't have cookies available, PHP's trans sid re-writes the URLs on your pages to include a session ID. What would i loose if i disabled trans_sid (or actually - tried to persuade my webhotel to disable it). You'd loose session for those without cookies. The work around for this would be to hard-code the session ID to all URLs across your site for all pages you wish to carry a session through -- a real pain. The strange thing is also that it only adds the session id to url:s when the page is first loaded. After the first click it goes away. It HAS TO use a session ID from the first page to the second, to be sure that the session is being carried... on the second page, it assesses if the cookie was set, and if so, doesn't bother rewriting any of the URLs, else, it continues. Most people beg to HAVE trans_sid enabled on their server, not to have it removed. It ensures the widest array of people can access your site without breaking sessions, and without the need for you to include (pass around) a session ID throughout your site via URLs. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)
On Tue, 1 Oct 2002 12:06:04 +0200, Daniel Alsn wrote: To reply to myself .) I disabled trans_sid on the actual site by using: ini_set('session.use_trans_sid',false); session_start(); But i still want to know what trans_sid does for me. What am i missing out on when not using it? - D, loves google -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Testing - please ignore. Sorry for any inconcenience. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)
Justin French propably said: You'd loose session for those without cookies. The work around for this would be to hard-code the session ID to all URLs across your site for all pages you wish to carry a session through -- a real pain. Indeed. It HAS TO use a session ID from the first page to the second, to be sure that the session is being carried... on the second page, it assesses if the cookie was set, and if so, doesn't bother rewriting any of the URLs, else, it continues. Aha...i got a bit confused first when i read your answer since i _know_ i have cookies enabled. But isn´t there any other way to work around this? Can i check if the cookie is set myself and if it is disable trans_sid with 'ini_set('session.use_trans_sid',false);'? Most people beg to HAVE trans_sid enabled on their server, not to have it removed. It ensures the widest array of people can access your site without breaking sessions, and without the need for you to include (pass around) a session ID throughout your site via URLs. Thanks. - D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)
In order to set and then check a cookie, you need to go through a page... so you'd have to set something in the URL like ?cookieset=1 anyway, in order to knwo you had set it, in order to check it. In other words, you'll need some guff in the URL, in order for it to all work, so why not let it be the session key, and let trans_sid do the work? Without trying to sound rude, get over it or deal with it :) Justin on 01/10/02 8:53 PM, Daniel Alsén ([EMAIL PROTECTED]) wrote: Aha...i got a bit confused first when i read your answer since i _know_ i have cookies enabled. But isn´t there any other way to work around this? Can i check if the cookie is set myself and if it is disable trans_sid with 'ini_set('session.use_trans_sid',false);'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
SV: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)
Justin French propably said: In order to set and then check a cookie, you need to go through a page... so you'd have to set something in the URL like ?cookieset=1 anyway, in order to knwo you had set it, in order to check it. In other words, you'll need some guff in the URL, in order for it to all work, so why not let it be the session key, and let trans_sid do the work? Without trying to sound rude, get over it or deal with it :) Guess i'll have to ;) - D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php