You are here: Re: [PHP] setcookie « PHP « IT news, forums, messages
Re: [PHP] setcookie

Posted by Randy Johnson on 03/05/05 05:07

ok I see how that could be an issue.

Here is my big problem that I have not been able to figure out.

I have a client website that I am trying to fix

1. it has sessions in database, and uses set cookie

2. I can login with firefox/netscape/mozilla just fine

3. I cannot login with any version of IE

4. this is also by going to domain.com or www.domain.com, neither work


any ideas?

Randy



Marek Kilimajer wrote:
> Randy Johnson wrote:
>
>> setcookie( "sess_key",$key,0,"/","." . str_replace(
>> "www","",$_SERVER["SERVER_NAME"] ),0 );
>>
>>
>> Does that look right?
>
>
> No.
>
> if $_SERVER["SERVER_NAME"] == 'www.domain.com'
>
> "." . str_replace("www","",$_SERVER["SERVER_NAME"] )
>
> will give you "..domain.com"
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация