hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : cookie problem?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

cookie problem?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2002, 10:27 AM
DomiNET.net DomiNET.net is offline
Web Hosting Master
 
Join Date: Oct 2001
Location: Miami,FL
Posts: 592

cookie problem?


Warning: Cannot send session cookie - headers already sent by (output
started at /home/saleitnl/public_html/testlog.php:7) in
/home/saleitnl/public_html/testlog.php on line 8

Warning: Cannot send session cache limiter - headers already sent (output
started at /home/saleitnl/public_html/testlog.php:7) in
/home/saleitnl/public_html/testlog.php on line 8


any hlp?

__________________
Joman Sierra
http://www.dominet.net

Reply With Quote


Sponsored Links
  #2  
Old 08-31-2002, 12:14 PM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
Hey,
This is a very common problem.. before you set a cookie or start a session, make sure you dont have any blank spaces or echo statements. Basically, DO NOT send any information to the browser. Even an extra blank space can cause problems.

hope that helps, if not, post your code here so that we can find the exact problem.

kunal

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

Reply With Quote
  #3  
Old 08-31-2002, 03:01 PM
aah-jim aah-jim is offline
Aspiring Evangelist
 
Join Date: Aug 2002
Posts: 380
i encountered this problem a lot, until I came across this magic line,
ob_start();
just put that at the start of your code and it will buffer the data preventing any errors, its never failed with me

__________________
web:http://www.allabouthosting.co.uk
email: sales@allabouthosting.co.uk

Reply With Quote
Sponsored Links
  #4  
Old 09-02-2002, 08:38 AM
dreamrae.com dreamrae.com is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Baltimore, Maryland
Posts: 580
um...no...you MUST make sure your cookie goes before ANYTHING ELSE, even when sending such headers as "location: blah" or "http 1.1" etc... the cookies must come 1st.. php.net

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
The Host Group Launches Web Hosting Affiliate Partner Program Web Hosting News 2012-11-20 11:31:43
New Heart Internet Feature Helps Customers Sell Unwanted Domains through Control Panel Web Hosting News 2012-09-05 15:17:37
UK Web Host Heart Internet Offers New Version of Serif Web Builder for Free Web Hosting News 2012-05-30 16:13:47
New UK Cookie Law Impacts Customers - What About Hosts? Web Hosting News 2012-05-28 14:16:07
LinkedIn Access Cookie Opens Users to Security Breaches, says Security Analyst Web Hosting News 2011-05-24 14:19:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?