cookies not working

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Nile
-


Joined: 14 Dec 2002
Posts: 4

PostPosted: Thu Dec 19, 2002 7:26 am    Post subject: cookies not working Reply with quote

This is my current settings in php.ini for cookies. Is something set wrong?


Code:
; Whether to use cookies.
session.use_cookies = 1


; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 1

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = c:\Program Files\Abyss Web Server\tmp

; The domain for which the cookie is valid.
session.cookie_domain = localhost


the cookies don't seem to be working.
Back to top View user's profile Send private message
!Keys
-


Joined: 23 Nov 2002
Posts: 156
Location: Holland, Enschede

PostPosted: Thu Dec 19, 2002 7:47 pm    Post subject: Reply with quote

cookies are fine in the standard .ini files. It´s your browser
_________________
!Keys || MwM^computerware
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Dec 19, 2002 11:16 pm    Post subject: Re: cookies not working Reply with quote

Nile wrote:
This is my current settings in php.ini for cookies. Is something set wrong?


Code:
; The domain for which the cookie is valid.
session.cookie_domain = localhost


the cookies don't seem to be working.

The cookies are valid only if you access your server locallly (that means only when you are using http://localhost) If you plan to make your web site available using another address, you should change session.cookie_domain .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
jhm
-


Joined: 03 Jan 2003
Posts: 2

PostPosted: Fri Jan 03, 2003 5:56 pm    Post subject: Re: cookies not working Reply with quote

aprelium wrote:
Nile wrote:
This is my current settings in php.ini for cookies. Is something set wrong?


Code:
; The domain for which the cookie is valid.
session.cookie_domain = localhost


the cookies don't seem to be working.

The cookies are valid only if you access your server locallly (that means only when you are using http://localhost) If you plan to make your web site available using another address, you should change session.cookie_domain .



Sorry for interupting.
I also have the same problem after I read this message
; The domain for which the cookie is valid.
session.cookie_domain =

It is very strange the end like this for the above statement, but I get exactly this in php.ini!
Would you please tell me the exact words the enable all my webpages to use cookies?
Thanks a lot!
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jan 04, 2003 1:27 am    Post subject: Re: cookies not working Reply with quote

jhm wrote:

Sorry for interupting.
I also have the same problem after I read this message
; The domain for which the cookie is valid.
session.cookie_domain =

It is very strange the end like this for the above statement, but I get exactly this in php.ini!
Would you please tell me the exact words the enable all my webpages to use cookies?

We are not PHP experts. So please double check our answer (ask some PHP guru.)
In our humble opinion, if your computer DNS name is www.mysite.com, then you should set:
Code:

session.cookie_domain = www.mysite.com

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
eyal067
-


Joined: 22 Mar 2003
Posts: 10

PostPosted: Sun Jun 29, 2003 10:45 pm    Post subject: Reply with quote

If I have DNS more from one ?
session.cookie_domain = mydns.com, mydns2.com
session.cookie_domain = mydns.com mydns2.com
session.cookie_domain = mydns.com; mydns2.com
how I do?
Back to top View user's profile Send private message
Lockley
-


Joined: 04 Jul 2003
Posts: 9
Location: Not sure...

PostPosted: Fri Jul 04, 2003 8:01 pm    Post subject: Reply with quote

I have a problem with cookies too, all the script works fine on my online pages but not on the localhost abyss server.

When I try to set/reada cookie it says undefined index in page...
Back to top View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group