FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » & - form and session problem!
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: & - form and session problem! [message #173530 is a reply to message #173524] Mon, 18 April 2011 09:42 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/18/2011 2:10 AM, lamb wrote:
>> Why do you have
>>
>> arg_separator.output=&
>>
>> in your php.ini file?
>
> no... I have arg_separator.output=&
>

Are you sure? Are you looking at the correct php.ini file?


> but in forms I get autmatically & in side of &
>

You should have & in the forums; when clicked on, the browser
automatically converts it to a single & for the URL. But to get &
in the URL, you have to have & in your html. You can get it by
having the wrong arg_separator.output in your php.ini file, or, as
Álvaro said, you are encoding the data twice. That shouldn't be the
case for your session id, but without the code it's impossible to tell.

>>
>> You do NOT want to do this. What happens if you get a parameter like:
>> http://www.example.com/albums?artist=sonny+&+cher
>>
>> You would NOT want to convert that one.
>
> I need thi! many external links to my site uses & in uri

As they should. However, remember, an external link which includes the
session id will be incorrect after the session times out (unless someone
else gets the same session id, which would be quite rare).

The big question is - why even worry about people who don't use cookies?
The vast majority of sites nowadays require cookies for many reasons,
and people who have them disabled won't be able to do much on the internet.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mysqli - can I bind wildcard params, and just get a result back to make a hash?
Next Topic: Parameter passing question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 01:10:24 GMT 2024

Total time taken to generate the page: 0.04087 seconds