| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Nile -
 
  Joined: 14 Dec 2002 Posts: 4
 
  | 
		
			
				 Posted: Thu Dec 19, 2002 7:26 am    Post subject: cookies not working | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		!Keys -
 
  Joined: 23 Nov 2002 Posts: 156 Location: Holland, Enschede
  | 
		
			
				 Posted: Thu Dec 19, 2002 7:47 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				cookies are fine in the standard .ini files. It´s your browser _________________ !Keys || MwM^computerware | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Thu Dec 19, 2002 11:16 pm    Post subject: Re: cookies not working | 
				      | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		
			           | 
		
	
	
		  | 
	
	
		jhm -
 
  Joined: 03 Jan 2003 Posts: 2
 
  | 
		
			
				 Posted: Fri Jan 03, 2003 5:56 pm    Post subject: Re: cookies not working | 
				      | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		
			          | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Sat Jan 04, 2003 1:27 am    Post subject: Re: cookies not working | 
				      | 
			 
			
				
  | 
			 
			
				 	  | 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:
 
 _________________ Support Team
 
Aprelium - http://www.aprelium.com | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		eyal067 -
 
  Joined: 22 Mar 2003 Posts: 10
 
  | 
		
			
				 Posted: Sun Jun 29, 2003 10:45 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		Lockley -
 
  Joined: 04 Jul 2003 Posts: 9 Location: Not sure...
  | 
		
			
				 Posted: Fri Jul 04, 2003 8:01 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			             | 
		
	
	
		  | 
	
	
		 |