18, March 2010

Cookies, sessions -> "Warning: Cannot modify header information - headers al... - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Cookies, sessions -> "Warning: Cannot modify header information - headers al...
« previous next »
Pages: [1] Print

Author Topic: Cookies, sessions -> "Warning: Cannot modify header information - headers al...  (Read 1324 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Mar 25, 2009, 10:36:06 am »

Hi.

First i wanna congratulate to all programmers of this class ;] Its just cool!  Cool

BUT.. Can anyone help me? I dont know why im getting error message:
Code:
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\krasnal\www\d-premium\login.php:1) in c:\usr\krasnal\www\d-premium\access.class.php on line 190

All the time trying to log in or log out...

First i wanna say: im not starting any output in that file...

When i changed
Code:
if( !isset( $_SESSION ) ) session_start();
to
Code:
if( isset( $_SESSION ) ) session_start();

I get no error on logging etc... And it works fine Smiley


But still i cant log out ;/
All the time it says "Output starts..."

This is code of login.php:
http://6669.pl/code.txt
« Last Edit: Mar 25, 2009, 10:42:14 am by Amidamaru6669 »
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5659
45587 credits
Members referred : 3



« Reply #1 on: Mar 25, 2009, 02:49:46 pm »

There should be some output before the session_start()

Maybe a blank in some page that you include first?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Mar 25, 2009, 03:14:26 pm »

Read the login.php:
(last link in my previous post)
There is NOTHING before logging out ;/
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #3 on: Mar 25, 2009, 10:20:26 pm »

Ok. Sorry working now.

My code was bad ^^ ;]
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=8613
Tags : header error output logout Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Cookies, sessions -> "Warning: Cannot modify header information - headers al...
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Mar 18, 2010, 11:24:45 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 44.197
Total Topics: 8.620
Total Members: 8.228
Tutorials : 58
Resources : 929
Designs : 360
Latest Member: ultrasandra

21 Guests, 4 Users online :

19 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2010 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.