rewritting session URLs

Started by Grudge, August 14, 2004, 08:11:12 PM

Previous topic - Next topic

Grudge

Hey,

OK. I admidt I can't figure this out and need help! I'm working on some other software which must be XHTML compliant, and as such &'s are not appropriate in the URLS. I've already written a very basic querystring function to use semicolons instead, but the one problem I have is using sessions, and the fact it automatically appends &phpsessid to the url. I tried doing, what I believe SMF does. Basically, made a ob_start function and passed a rewrite function to it that basically means the function gets called when the buffer gets flushed. However, the function *does* get called, but it appears to be called before the PHPSESSID variable is appended, and hence doing the str_replace just doesn't work. Is there something obvious I'm missing?

Thanks,
Grudge
I'm only a half geek really...

[Unknown]

That's why SMF appends the session URL... that way, PHP won't do it.

-[Unknown]

Grudge

Quote from: [Unknown] on August 14, 2004, 10:10:49 PM
That's why SMF appends the session URL... that way, PHP won't do it.

-[Unknown]
At the risk of sounding stupid can you point in my the direction of either the lines where SMF does it, or the function/setting you have to change to tell PHP not to append them?
I'm only a half geek really...

Grudge

Found it. It was an ini setting!
@ini_set ('arg_separator.output', '&');
I'm only a half geek really...

Advertisement: