Re: [Phplib-users] sourceforge project page down & real $sess->url() stuff
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@dr...> - 2005-11-08 17:23:33
|
> I use it in a navigationbar, so if I click on one item and than on > the next item the url ever "knows" where I was before. It's ok, but I > don't like it, it looks so ugly. I thought there was something that > looks into the querystring and than deletes doubles and gives the > cleaned querystring back, but maybe I am wrong. There will come a day > for urlbeauty. :) Andreas, Session::url() only cleans out any session ids from the URL given to it before adding the session id to the query string of that URL. Based on the fact that Session::url() only adds the session id if the session is in GET mode, I'd guess that your code is adding the get vars on top of the existing $_SERVER["REQUEST_URI"]. It's pretty simple to remove those; you could use Session::url() as a guide for making a generic function to handle that task. --=20 Layne Weathers |