Follow us on Twitter!
Hacking isn't just Computers & Exploits. It's a Philosophy. - Mr_Cheese
Thursday, April 17, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 18
Guests Online: 18
Members Online: 0

Registered Members: 82813
Newest Member: VesuviusSentinel
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

PHP Sessions


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-03-08 23:50
When using a PHP session I'm getting the warning:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/*****/profile.php:18) in /home/www/*****/profile.php on line 25

and When I'm setting the session I'm using:

Code
session_start();
$_SESSION["name"] = $_POST["uname"];
$_SESSION["user_id"] = $res["id"];
$_SESSION["active"] = 1;




Anyone know what I need to change/add?


Author

RE: PHP Sessions

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 24-03-08 23:54
You need to add these:

-a search on PHP.net
-a search on Google



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: PHP Sessions


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-03-08 00:26
i like the google idea
Author

RE: PHP Sessions


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-03-08 01:14
i believe u have to start the session in the first line


Author

RE: PHP Sessions


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-03-08 04:18
i bet the session_start() isnt the first line of php code you have. put it there and your problems are solved.


Author

RE: PHP Sessions


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-03-08 06:23
Put the session php code before you're html.
Code
<?php
session blah blah
?>
<html>
<head>
...





Author

RE: PHP Sessions


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-03-08 11:12
Thanks alot guys. I knew it would be something simple like that. Grin

Works lovely now Smile